clicon / clixon-controller

Clixon network controller
Apache License 2.0
12 stars 4 forks source link

"show compare devices diff" should display device name #64

Closed krihal closed 7 months ago

krihal commented 7 months ago

Device names must be included in the output for "show devices diff".

olofhagsand commented 7 months ago

You mean "> show devices diff"?

krihal commented 7 months ago

Correct.

krihal commented 7 months ago

Looks good!

debian@khn-dev> show devices diff
openconfig1:
+  <system xmlns="http://openconfig.net/yang/system">
+     <config>
+        <hostname>openconfig1</hostname>
+     </config>
+     <aaa>
+        <authentication>
+           <users>
+              <user>
+                 <username>test</username>
+                 <config>
+                    <username>test</username>
+                    <ssh-key>test</ssh-key>
+                    <role>test</role>
+                 </config>
+              </user>
+           </users>
+        </authentication>
+     </aaa>
+  </system>
openconfig2:
   <system xmlns="http://openconfig.net/yang/system">
+     <config>
+        <hostname>openconfig2</hostname>
+     </config>
   </system>
debian@khn-dev>