- 21 Nov 2024
-
DarkLight
-
PDF
NED Validator (IAP 2022.1)
- Updated on 21 Nov 2024
-
DarkLight
-
PDF
Verifying Cisco IOS Configuration
The NED Validator accepts device configurations for various supported NEDs that are part of Cisco NSO (Network Services Orchestration). You can verify a configuration using the NED Validator before applying the configuration to your network devices.
From the Itential Automation Platform (IAP) home page menu, select NED Validator to open the application. Refer to the table below for a basic overview of the user interface (UI) and how the various elements are used to check the validity of your device configuration.
Figure 1: NED Validator UI
Label | UI Element | Function |
---|---|---|
1 | Select an Adapter | Dropdown to select the adapter that holds the device information. |
2 | Select a NED | Dropdown to select the name and version of the NED ID. |
3 | Upload File | Click to upload a configuration file for import. |
4 | Configuration Field | Used to enter and edit the device configuration. |
5 | Clear Config | Click to delete any device configuration entered in the Configuration Field. |
6 | Verify Config | Click to run verification of the configuration for the selected NED. |
7 | Validation Results | The output of the verification run is displayed in this field. |
8 | Export Report | Click to export the verification results in a text file. |
To verify configuration for Cisco-IOS:
-
Open the NED Validator.
-
From the Select an Adapter dropdown, select Local NSO.
-
From the Select a NED dropdown, select Cisco-IOS.
-
Click in the Configuration field and type your configuration. A sample configuration is provided below if you do not have one readily available.
Sample Configuration (Cisco-IOS)
interface Loopback 0 description Hello. Enter a string here. ip address 1.1.1.1 255.255.255.255 no shut ! router ospf 10 network 1.1.0.0 0.0.255.255 area 0 !
-
Click the VERIFY CONFIG button. The NED Validator will check the configuration to verify its validity and display the output in the Validation Results field.
Figure 2 : Valid Configuration Result
Verifying Cisco IOSXR Configuration
To confirm the NED Validator works for multiple NEDs, you can verify device configuration for the Cisco IOS XR NED.
-
Click CLEAR CONFIG to erase the configuration in the Configuration field.
-
From the Select NED dropdown, select the Cisco IOS XR NED.
-
Enter your device configuration in the Configuration field. A sample configuration is provided below if you do not have one readily available.
Sample Configuration (Cisco IOS XR NED)
interface Loopback 0 description Hello. Enter a string here. no shut !
-
Click the VERIFY CONFIG button. The NED Validator will check the configuration to verify its validity and display the output in the Validation Results field.
Figure 3: Cisco IOSXR Configuration Result
Exporting Configuration Results
Along with directly viewing your output in the Validation Results field, you can export your results to a text file.
- Click EXPORT REPORT.
- A report is automatically generated and downloaded to your computer.
Handling Device Config Errors in NED Validator
When an error in device configuration occurs, the NED Validator displays an error message. This section provides an example of an error when checked against the Cisco-IOS NED.
-
Click CLEAR CONFIG to erase the Configuration field.
-
From the Select NED dropdown, select the Cisco-IOS NED.
-
Enter the configuration sample shown below in the Configuration field.
Sample Invalid Configuration (Cisco-IOS)
interface Loopback 0 description Loopback address is our OSPF router ID ip address 1.1.1.1 255.255.255.255 no shut ! interface Fast 1/0 ipv4 address 10.10.10.10 255.255.255.0 no shut ! router ospf 10 router-id 1.1.1.1 network 1.1.0.0 0.0.255.255 area 0 !
-
Click VERIFY CONFIG. Notice the error message in the Validation Results field.
Figure 4: Validation Result with Error Message
Correcting Invalid Cisco IOS Configuration
From the pevious example that was shown, the output message in the Validation Results field indicated a syntax error on line 2 which points to an invalid IP address.
Figure 5: Syntax Error on Line 2
-
Replace the incorrect configuration line by inserting the correct IP address shown below.
Correct Line of Configuration
ip address 10.10.10.10 255.255.255.0
-
Click the VERIFY CONFIG button. Notice the configuration output is now valid.
Figure 6: Validation result with Corrected Configuration