How to get correct Yang configuration on ASR9k
Now some customer test netconf-yang on our XR platform. And frequency to check how to get correct yang config(XML), then they test the yang config by their controller to touch with our devices. Now there are several ways to achieve that, summed up to facilitate review:
Commit follow cmd:
netconf-yang agent ssh ssh server v2 ssh server rate-limit 300 ssh server netconf vrf default ssh server logging
Generate key:
#crypto key generate dsa—————————————————
- We can ssh 830 to asr9k paltform, then get the configuration, that should correct yang config, you can reference attachment at test-xml-by-ssh.txt
ssh [email protected] -p 830 -s netconf
- We can build Netconf NED by pioneer in NSO, then sync-from devices, and “devices device 9001-A compare-config outformat xml”, that should correct yang config
- After install NSO, we can use follow tools to achieve that function too
netconf-console -u cisco -p cisco --host 10.75.49.53 --port 831 --get-config
Btw, please attention “-” and “–” that maybe cause command issue.