cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
629
Views
2
Helpful
1
Replies

Import given XML in NSO

lweddewer
Level 5
Level 5

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.