Uploaded image for project: 'hc2vpp'
  1. hc2vpp
  2. HC2VPP-151

Code -114 on creation of interface with vrf and IP address from hc2vpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 17.07
    • None
    • None

      Creating an interface from hc2vpp north bound with IP and VRF fails with code -114. This effectively implies all interface creation with vrf and ip together fails.

      Sample call:

      url: http://hc2vpp-ip:hc2vpp-port/restconf/config/ietf-interfaces:interfaces/interface/loop0

      body:

      {
          "interface": [
              {
                  "name": "loop0",
                  "description": "for testing purposes",
                  "type": "v3po:loopback",
                  "loopback" :{
                      "mac" : "00:ff:ff:ff:ff:ff"
                  },
          		"v3po:routing": {
          			"ipv4-vrf-id": 1
          		},
          		"link-up-down-trap-enable": "enabled",
          		"enabled": true,
          		"ietf-ip:ipv4": {
          			"address": [
              			{
              				"ip": "10.11.12.1",
          					"prefix-length": 24
              			}
          			]
          		}
            }
          ]
      }
      

      Note:
      Creating the interface with the vrf first and putting the ip in a separate command solves the problem. But it should work a single command.

            jsrnicek_cisco Jan Srnicek
            shakib.ahmed Shakib Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: