Uploaded image for project: 'honeycomb'
  1. honeycomb
  2. HONEYCOMB-261

configuring interfaces may fail with empty containers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 17.01
    • None
    • HC VPP plugin

      If I:
      1. get interface config:
      GET /restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0
      {"interface": [{"name": "GigabitEthernet0/8/0", "vpp-vlan:sub-interfaces": {}, "enabled": "true", "v3po:ethernet":

      {"mtu": 9216}

      , "type": "iana-if-type:ethernetCsmacd", "ietf-ip:ipv4": {}}]}

      2. set interface state up (modify received config data and send):
      PUT /restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0
      {"interface": [{"name": "GigabitEthernet0/8/0", "vpp-vlan:sub-interfaces": {}, "enabled": "false", "v3po:ethernet":

      {"mtu": 9216}

      , "type": "iana-if-type:ethernetCsmacd", "ietf-ip:ipv4": {}}]}

      The PUT request fails on a missing writer for subinterface. Removing the empty "vpp-vlan:sub-interfaces" container avoids the issue.

      Most likely introduced in https://gerrit.fd.io/r/3142

            mmarsale Maroš Maršalek
            selias Samuel Eliáš
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: