Uploaded image for project: 'neutron'
  1. neutron
  2. NEUTRON-107

GET interface from router and add interface to router not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • stable/lithium
    • neutron-spi
    • None
    • Operating System: All
      Platform: All

    • 5124

      Description:

      GET Interface and "add interface to router" not working.

      I have created a router with below configuration. Router got created successfully.
      --------------------------------------------------------------------
      http://<controller IP>:8080/restconf/config/neutron:neutron/routers/
      {"router": {
      "name": "RRRRRR1",
      "interfaces": [

      { "port-id": "c8dd830f-7b97-40f0-a7b6-21cd5aff502e", "subnet-id": "9b09f1a7-250f-4562-8093-e6018aeceaf6", "uuid": "c8ff831f-7b97-40f0-a7b6-21cd5aff502d", "tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820" }

      ,
      ],
      "uuid": "5971a821-f8f0-4771-ae4c-7f132ba5e77c",
      "tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820",
      "admin-state-up": true
      }
      }
      -----------------------------------------------------------------------

      But, when i try to get list of interface details and adding new interface to existing router is not working.

      To GET available Interfaces i used below API.

      http://<controller IP>:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/
      Output is :
      {
      "errors": {
      "error": [

      { "error-type": "application", "error-tag": "data-missing", "error-message": "Request could not be completed because the relevant data model content does not exist " }

      ]
      }
      }

      To add interface i used below API.
      http://10.183.254.195:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/http://10.183.254.195:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/
      {
      "subnet-id": "9b09f1a7-250f-4562-8093-e6018aeceaf6",
      "tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820",
      "port-id": "c8dd830f-7b97-40f0-a7b6-21cd5aff502e",
      "uuid": "c8ff831f-7b97-40f0-a7b6-21cd5aff502d"
      }

      Output Observed:
      {
      "errors": {
      "error": [

      { "error-type": "protocol", "error-tag": "malformed-message", "error-message": "Error parsing input: Schema node with name subnet-id wasn't found under (urn:opendaylight:neutron?revision=2015-03-25)router." }

      ]
      }
      }

            thapar Vishal Thapar
            rajamk RajaRajan Manickam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: