Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NETCONF is a network configuration and management protocol based on XML.

...

YANG is a data modeling language used to model configuration and state data manipulated by NETCONF.
You can find can find the YANG module file of different modules on your switch under the directory directory "/pica/binetc/netconfcommon/data-models".

Code Block
admin@XorPlus$pwd 
/pica/etc/common/data-models
admin@XorPlus$ls -lt *.yang 
-rw-rw-r-- 1 root xorp  2288 Jul  9 16:14 arp.yang
-rw-rw-r-- 1 root xorp  4075 Jul  9 16:14 bfd.yang
-rw-rw-r-- 1 root xorp  6950 Jul  9 16:14 cos-with-pfc.yang
-rw-rw-r-- 1 root xorp  6062 Jul  9 16:14 cos-without-pfc.yang
-rw-rw-r-- 1 root xorp  3031 Jul  9 16:14 dhcp.yang
-rw-rw-r-- 1 root xorp  5173 Jul  9 16:14 dot1x.yang
-rw-rw-r-- 1 root xorp 14261 Jul  9 16:14 firewall-no-icmp-type-code.yang
-rw-rw-r-- 1 root xorp 14857 Jul  9 16:14 firewall.yang
-rw-rw-r-- 1 root xorp 16760 Jul  9 16:14 ietf-inet-types.yang
-rw-rw-r-- 1 root xorp 18034 Jul  9 16:14 ietf-yang-types.yang
-rw-rw-r-- 1 root xorp  4814 Jul  9 16:14 igmpsnooping.yang
-rw-rw-r-- 1 root xorp  3320 Jul  9 16:14 lacp.yang
-rw-rw-r-- 1 root xorp  6944 Jul  9 16:14 lldp.yang
-rw-rw-r-- 1 root xorp  4492 Jul  9 16:14 mlag.yang
-rw-rw-r-- 1 root xorp 25632 Jul  9 16:14 mstp.yang
-rw-rw-r-- 1 root xorp  4825 Jul  9 16:14 neighbour.yang
-rw-rw-r-- 1 root xorp  1052 Jul  9 16:14 routing.yang
-rw-rw-r-- 1 root xorp  5123 Jul  9 16:14 sflow.yang
-rw-rw-r-- 1 root xorp  4904 Jul  9 16:14 snmp.yang
-rw-rw-r-- 1 root xorp 13185 Nov  4 10:44 static-routes.yang
-rw-rw-r-- 1 root xorp 50887 Jul  9 16:14 system.yang
-rw-rw-r-- 1 root xorp  4126 Jul  9 16:14 udld.yang
-rw-rw-r-- 1 root xorp   871 Jul  9 16:14 version.yang
-rw-rw-r-- 1 root xorp 10137 Nov  4 10:44 vlan-interface.yang
-rw-rw-r-- 1 root xorp  8000 Jul  9 16:14 vlans.yang
-rw-rw-r-- 1 root xorp 11145 Nov  4 10:44 vrrp.yang
-rw-rw-r-- 1 root xorp  8679 Nov  4 10:44 vxlans.yang
-rw-rw-r-- 1 root xorp  4515 Jul  9 16:14 xovs.yang

...

Note

If you use ncclient, you must modify the rpc.py : add two lines codes to work with pica8 switch.

Edit the rpc.py file to contain the followings before the statement ‘self._session.send(req)’:

req = req.replace('nc:','')

req = req.replace(':nc','')


 Get .yang or .yin File

The administrator can use get-schema operation to retrieve the .yang or .yin data file information on the PICA8 switch. For details about get-schema operation, see RFC6022 YANG Module for NETCONF Monitoring.

...