Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly formatted json data from openconfig data model #301

Open
jean-christophe-manciot opened this issue Oct 27, 2017 · 3 comments
Open

Comments

@jean-christophe-manciot
Copy link

jean-christophe-manciot commented Oct 27, 2017

Hello @einarnn
With:
NX-OSv9K 7.0(3)I6(1)

capabilities: 
  capability: 
    - urn:ietf:params:netconf:base:1.0
    - urn:ietf:params:netconf:base:1.1
    - urn:ietf:params:netconf:capability:writable-running:1.0
    - urn:ietf:params:netconf:capability:rollback-on-error:1.0
    - urn:ietf:params:netconf:capability:candidate:1.0
    - urn:ietf:params:netconf:capability:validate:1.1
    - urn:ietf:params:netconf:capability:confirmed-commit:1.1
    - http://cisco.com/ns/yang/cisco-nx-os-device?revision=2017-05-16&module=cisco-nx-os-device&deviations=cisco-nx-os-device-deviations
    - http://openconfig.net/yang/bgp?revision=2016-06-06&module=openconfig-bgp&deviations=openconfig-bgp-deviations
    - http://openconfig.net/yang/bgp-multiprotocol?revision=2016-06-06&module=openconfig-bgp-multiprotocol&deviations=openconfig-bgp-multiprotocol-deviations
    - http://openconfig.net/yang/interfaces?revision=2016-05-26&module=openconfig-interfaces&deviations=openconfig-interfaces-deviations
    - http://openconfig.net/yang/interfaces/ip?revision=2016-05-26&module=openconfig-if-ip&deviations=openconfig-if-ip-deviations
    - http://openconfig.net/yang/local-routing?revision=2016-05-11&module=openconfig-local-routing&deviations=openconfig-local-routing-deviations
    - http://openconfig.net/yang/routing-policy?revision=2016-05-12&module=openconfig-routing-policy&deviations=openconfig-routing-policy-deviations
    - http://openconfig.net/yang/vlan?revision=2016-05-26&module=openconfig-vlan&deviations=openconfig-vlan-deviations

If I list OpenConfig interfaces with a RESTconf GET at restconf/data/openconfig-interfaces:interfaces?content=config, I get:

"data": {
...
    "content": "{\"interfaces\":{\"interface\":{\"config\":{\"name\":\"vlan1\"},\"name\":\"vlan1\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/39\"},\"name\":\"eth1\\/39\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/48\"},\"name\":\"eth1\\/48\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/42\"},\"name\":\"eth1\\/42\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/37\"},\"name\":\"eth1\\/37\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/35\"},\"name\":\"eth1\\/35\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/27\"},\"name\":\"eth1\\/27\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/3\"},\"name\":\"eth1\\/3\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.112.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.112.11\"}}}}},\"routed-vlan\":{\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.112.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.112.11\"}}}}},\"interface\":{\"config\":{\"name\":\"eth1\\/52\"},\"name\":\"eth1\\/52\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/54\"},\"name\":\"eth1\\/54\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/61\"},\"name\":\"eth1\\/61\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/58\"},\"name\":\"eth1\\/58\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/4\"},\"name\":\"eth1\\/4\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.113.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.113.11\"}}}},\"subinterface\":{\"index\":\"20\"},\"subinterface\":{\"index\":\"10\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/29\"},\"name\":\"eth1\\/29\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/47\"},\"name\":\"eth1\\/47\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/14\"},\"name\":\"eth1\\/14\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/9\"},\"name\":\"eth1\\/9\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/7\"},\"name\":\"eth1\\/7\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.116.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.116.11\"}}}},\"subinterface\":{\"index\":\"20\"},\"subinterface\":{\"index\":\"10\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/8\"},\"name\":\"eth1\\/8\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/25\"},\"name\":\"eth1\\/25\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/18\"},\"name\":\"eth1\\/18\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/40\"},\"name\":\"eth1\\/40\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/12\"},\"name\":\"eth1\\/12\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/36\"},\"name\":\"eth1\\/36\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/16\"},\"name\":\"eth1\\/16\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/1\"},\"name\":\"eth1\\/1\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"172.21.100.111\",\"prefix-length\":\"16\"},\"ip\":\"172.21.100.111\"}}}}},\"routed-vlan\":{\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"172.21.100.111\",\"prefix-length\":\"16\"},\"ip\":\"172.21.100.111\"}}}}},\"interface\":{\"config\":{\"name\":\"eth1\\/10\"},\"name\":\"eth1\\/10\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/49\"},\"name\":\"eth1\\/49\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/31\"},\"name\":\"eth1\\/31\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/53\"},\"name\":\"eth1\\/53\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/19\"},\"name\":\"eth1\\/19\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/38\"},\"name\":\"eth1\\/38\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/56\"},\"name\":\"eth1\\/56\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/43\"},\"name\":\"eth1\\/43\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/44\"},\"name\":\"eth1\\/44\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/5\"},\"name\":\"eth1\\/5\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.114.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.114.11\"}}}},\"subinterface\":{\"index\":\"10\"},\"subinterface\":{\"index\":\"20\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/34\"},\"name\":\"eth1\\/34\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/23\"},\"name\":\"eth1\\/23\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/21\"},\"name\":\"eth1\\/21\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/28\"},\"name\":\"eth1\\/28\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/22\"},\"name\":\"eth1\\/22\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/24\"},\"name\":\"eth1\\/24\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/55\"},\"name\":\"eth1\\/55\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/33\"},\"name\":\"eth1\\/33\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/11\"},\"name\":\"eth1\\/11\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/64\"},\"name\":\"eth1\\/64\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/41\"},\"name\":\"eth1\\/41\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/13\"},\"name\":\"eth1\\/13\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/45\"},\"name\":\"eth1\\/45\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/2\"},\"name\":\"eth1\\/2\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.111.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.111.11\"}}}}},\"routed-vlan\":{\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.111.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.111.11\"}}}}},\"interface\":{\"config\":{\"name\":\"eth1\\/63\"},\"name\":\"eth1\\/63\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/60\"},\"name\":\"eth1\\/60\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/62\"},\"name\":\"eth1\\/62\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/17\"},\"name\":\"eth1\\/17\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/59\"},\"name\":\"eth1\\/59\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/46\"},\"name\":\"eth1\\/46\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/50\"},\"name\":\"eth1\\/50\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/20\"},\"name\":\"eth1\\/20\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/57\"},\"name\":\"eth1\\/57\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/6\"},\"name\":\"eth1\\/6\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\",\"ipv4\":{\"addresses\":{\"address\":{\"config\":{\"ip\":\"10.3.115.11\",\"prefix-length\":\"24\"},\"ip\":\"10.3.115.11\"}}}},\"subinterface\":{\"index\":\"20\"},\"subinterface\":{\"index\":\"10\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/26\"},\"name\":\"eth1\\/26\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/51\"},\"name\":\"eth1\\/51\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/15\"},\"name\":\"eth1\\/15\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/32\"},\"name\":\"eth1\\/32\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"interface\":{\"config\":{\"name\":\"eth1\\/30\"},\"name\":\"eth1\\/30\",\"subinterfaces\":{\"subinterface\":{\"index\":\"0\"}}},\"xmlns\":\"http:\\/\\/openconfig.net\\/yang\\/interfaces\"}}", 
    "content_length": "8414", 
    "content_type": "application/yang.data+json", 
...

When saving the data to nice yaml or nice json with ansible, it appears that there may be duplicate keys so that only the last fields are kept:

interfaces:
    interface:
        config:
            name: eth1/30
        name: eth1/30
        subinterfaces:
            subinterface:
                index: '0'
    xmlns: http://openconfig.net/yang/interfaces

The whole discussion is available here about what I originally thought to be an ansible issue.

@einarnn
Copy link
Member

einarnn commented Oct 28, 2017

That doesn't look healthy. I'll investigate.

Cheers,

Einar

@einarnn
Copy link
Member

einarnn commented Oct 30, 2017

Jean-Christophe,

I've had a chance to try out NX-OS 7.0(3)I6(2) on a real N9K, and below is the result of a get against openconfig-interfaces, which, as you can see, looks ok. There is one problem, however, which is the Accept MIME type. I had to use application/yang.data+json, whereas the RFC defines application/yang-data+json, which is a pain.

The developers told me that some fixes to the JSON output have gone in. When I look at the output you have above, my first thought was that it was a simple translation of the XML output to JSON.

Are you able to use a newer release?

Cheers,

Einar

22:16 $ curl -k --silent "https://172.19.193.156:443/restconf/data/openconfig-interfaces:interfaces?content=config" -H 'Accept: application/yang.data+json' -u 'admin:cisco'
{
      "interfaces" : {
         "xmlns" : "http://openconfig.net/yang/interfaces",
         "interface" : [
            {
               "config" : {
                  "description" : "",
                  "name" : "vlan1"
               },
               "name" : "vlan1",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/39"
               },
               "name" : "eth1/39",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/48"
               },
               "name" : "eth1/48",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/42"
               },
               "name" : "eth1/42",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/37"
               },
               "name" : "eth1/37",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/35"
               },
               "name" : "eth1/35",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/27"
               },
               "name" : "eth1/27",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/3"
               },
               "name" : "eth1/3",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/4"
               },
               "name" : "eth2/4",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/6"
               },
               "name" : "eth2/6",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/10"
               },
               "name" : "eth2/10",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/4"
               },
               "name" : "eth1/4",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/29"
               },
               "name" : "eth1/29",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/47"
               },
               "name" : "eth1/47",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/14"
               },
               "name" : "eth1/14",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/9"
               },
               "name" : "eth1/9",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/7"
               },
               "name" : "eth1/7",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/8"
               },
               "name" : "eth1/8",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/25"
               },
               "name" : "eth1/25",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/18"
               },
               "name" : "eth1/18",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/40"
               },
               "name" : "eth1/40",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/12"
               },
               "name" : "eth1/12",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/36"
               },
               "name" : "eth1/36",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/16"
               },
               "name" : "eth1/16",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/1"
               },
               "name" : "eth1/1",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/10"
               },
               "name" : "eth1/10",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/1"
               },
               "name" : "eth2/1",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/31"
               },
               "name" : "eth1/31",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/5"
               },
               "name" : "eth2/5",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/19"
               },
               "name" : "eth1/19",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/38"
               },
               "name" : "eth1/38",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/8"
               },
               "name" : "eth2/8",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/43"
               },
               "name" : "eth1/43",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/44"
               },
               "name" : "eth1/44",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/5"
               },
               "name" : "eth1/5",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/34"
               },
               "name" : "eth1/34",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/23"
               },
               "name" : "eth1/23",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/21"
               },
               "name" : "eth1/21",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/28"
               },
               "name" : "eth1/28",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/22"
               },
               "name" : "eth1/22",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/24"
               },
               "name" : "eth1/24",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/7"
               },
               "name" : "eth2/7",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/33"
               },
               "name" : "eth1/33",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/11"
               },
               "name" : "eth1/11",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/41"
               },
               "name" : "eth1/41",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/13"
               },
               "name" : "eth1/13",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/45"
               },
               "name" : "eth1/45",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/2"
               },
               "name" : "eth1/2",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/12"
               },
               "name" : "eth2/12",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/17"
               },
               "name" : "eth1/17",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/11"
               },
               "name" : "eth2/11",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/46"
               },
               "name" : "eth1/46",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/2"
               },
               "name" : "eth2/2",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/20"
               },
               "name" : "eth1/20",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/9"
               },
               "name" : "eth2/9",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/6"
               },
               "name" : "eth1/6",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/26"
               },
               "name" : "eth1/26",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth2/3"
               },
               "name" : "eth2/3",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/15"
               },
               "name" : "eth1/15",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/32"
               },
               "name" : "eth1/32",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            },
            {
               "config" : {
                  "description" : "",
                  "name" : "eth1/30"
               },
               "name" : "eth1/30",
               "subinterfaces" : {
                  "subinterface" : [
                     {
                        "index" : "0"
                     }
                  ]
               }
            }
         ]
      }
   }
22:17 $

@jean-christophe-manciot
Copy link
Author

Hey Einar,
Thanks for taking a look at this issue.
Unfortunately, I have no access to physical NX-OS, and my NX-OSv 9k rely on VIRL releases.
Due to a current issue with VIRL, I am currently unable to upgrade it to get the latest NX-OSv 9k image. (VIRL has been recently upgraded to a new version which is incompatible with the previous one, the latter being now unusable).
Since there is also no NX-OSv 9k image available in the download section of the VIRL account, I am stuck with the old 7.0(3)I6(1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants