I have a huge cli conf file that I'd like to convert to YANG xml
....
system
host-name hostname.com
system-ip 8.8.8.8
site-id 1
organization-name "Organization name"
sp-organization-name "Organization name"
vbond vbond.net
....
!
There are utilities like netconf-console2 that will fetch the configs from a router and display them as YANG XML
netconf-console2 --host=192.168.0.2 -u admin -p PASSWORD --port 830 --get-config
I was wondering if I could use the same utility to convert the conf from a local input, something like:
netconf-console2 --file localConf.cf
Not sure if that is even possible or if there is an alternative to netconf-console2 for this.