cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
624
Views
0
Helpful
1
Replies

NSO upgrade via PUT

Hi, guys

I prove the NSO API RESTCONF and I have a problem,

I tried to modify my router using PUT method and received this error:

NSO_PUT_ERROR.jpg

This is  my url:

 

http://nso.sdwanlab.com:8080/restconf/data/tailf-ncs:devices/device=RV260/config/ciscosb-ipgroup:ip-groups

 

and this is the pyload

 

{

  "ciscosb-ipgroup:ip-groups": {

    "ip-group": [

      {

        "name": "R_Users",

        "ips": [

          {

            "seq": 0,

            "ipv4": {

              "subnet": {

                "ip": "172.17.1.0",

                "prefix-length": 30

              }

            }

          },

          {

            "seq": 1,

            "ipv4": {

              "range": {

                "start": "192.168.100.1",

                "end": "192.168.100.10"

              }

            }

          },

          {

            "seq": 2,

            "ipv4": {

              "single": "1.1.1.1"

            }

          }

        ]

      },

      {

        "name": "Testeando",

        "ips": [

          {

            "seq": 0,

            "ipv4": {

              "subnet": {

                "ip": "192.168.60.0",

                "prefix-length": 24

              }

            }

          },

          {

            "seq": 1,

            "ipv4": {

              "subnet": {

                "ip": "192.168.70.0",

                "prefix-length": 24

              }

            }

          }

        ]

      },

      {

        "name": "Users",

        "ips": [

          {

            "seq": 0,

            "ipv4": {

              "subnet": {

                "ip": "192.168.10.0",

                "prefix-length": 24

              }

            }

          },

          {

            "seq": 1,

            "ipv4": {

              "subnet": {

                "ip": "192.168.2.0",

                "prefix-length": 24

              }

            }

          },

          {

            "seq": 2,

            "ipv4": {

              "subnet": {

                "ip": "192.168.20.0",

                "prefix-length": 24

              }

            }

          }

        ]

      }

    ]

  }

}

 

Thanks for your help

1 Reply 1

vleijon
Cisco Employee
Cisco Employee
I actually think you are really close to the right URL yourself and if you look in the error message you get another clue: You have to use tailf-ncs: instead of ncs:. This is because RESTCONF uses the module name, and not the prefix.
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 NSO Developer community: