cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Import given XML in NSO

lweddewer
Contributor
Contributor

I try to import given xml-data via the REST API.

In most cases it works without any problem.

For reasons I don't know the netmask is coded in a little bit unexpected form:

<IP_ADDRESS_V4 slashSize='32'>10.214.197.18</IP_ADDRESS_V4>

Importing the IP-address works without any problem.

Is there a way to also read the value of the "slashSize" directly insite of NSO?

Regards

Lothar

1 ACCEPTED SOLUTION

Accepted Solutions

Jan Lindblad
Cisco Employee
Cisco Employee

You would have to transform this homegrown XML format into NETCONF/XML format before you import it. You could use XSLT, for example, or write a python script.

View solution in original post

1 REPLY 1

Jan Lindblad
Cisco Employee
Cisco Employee

You would have to transform this homegrown XML format into NETCONF/XML format before you import it. You could use XSLT, for example, or write a python script.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: