how to get more detail
luolufang opened this issue · 1 comments
luolufang commented
function get_diff($old,$new){
$differ=new Differ();
return $differ->diff($old,$new);
}
and get_diff return a string.
@@ @@
!
-!
+ !
@@ @@
switchport mode access
-!
+ !
@@ @@
!
-interface GigabitEthernet1/0/23 //how can i get the previous three lines
+ interface GigabitEthernet1/0/23
@@ @@
interface GigabitEthernet1/0/32
-!
+ !
@@ @@
!
-interface GigabitEthernet1/0/44
+ interface GigabitEthernet1/0/44
@@ @@
!
thanks
SpacePossum commented
Hi!
Currently this is not possible on the 1.x line, it will be made possible on the 2.x line using a 3rd party (either import or selfmade). The release of 2.0 is close so please bear with us :)