Validation of YANG model and NETCONF features on Network Equipements
The current testsuite includes 55 automated tests which validation of NETCONF and YANG. It takes around 1 minute to complete them all.
- YANG and NETCONF Testsuite documentation
- NETCONF keywords documentation
- NcclientLibraryHuaweiYANG documentation
That set of NETCONF's "capabilties" and YANG data models is based on 4th plugtest (see 4th mWT Plugtests report). Standard YANG modules include:
- ietf-system
- ietf-hardware
- ietf-interfaces
- ietf-microwave-radio-link
- ieee802-dot1q-bridge
- ieee802-dot1ab-lldp
The testsuite is compliant with RobotFramework from version 5.0 to 6.1.1.
RobotFramework framework requires Python:
- Python 3.6 or newer if you are using RobotFramework 5.0 to 6.0.
- Python 3.7 or newer if you are using RobotFramework 6.1.
Depends on you OS:
- Windows: Download on official website,
- GNU/Linux: Python is probably installed.
Install all required dependencies using the following command line.
pip install -r requirements.txt
Open the testbench_variables.yaml
file with any text editor and change the
IP addresses, login and password of both equipements.
If you are on Windows, the Windows Notepad is your straightforward option. You may be interested on Notepad++, if you want syntax color.
%YAML 1.1
---
NETWORK_ELEMENTS:
ne1:
netconf:
host: 172.20.183.168
username: netconfuser
password: NotSoSecret123*
ne2:
netconf:
host: 172.20.183.169
username: netconfuser
password: NotSoSecret123*
...
Change the working directory to robot/
and run the robot.
cd robot/
robot yang_validation/
Collect the 3 produced files: report.html, log.html and output.xml. Share them in the validation report.