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

Interfaces are being added with additional type:ethernet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 19.08
    • 18.10, 19.01
    • v3po
    • None

      When adding new interface to vpp, it is inserted with an additional "ethernet" type. This doesn't pose immediate issue since this second type gets added after the correct one and therefore is ignored by operations such as delete and write. However restarting honeycomb brings this problem forth since loading honeycomb configuration from json changes the order of these types and the "ethernet" gets before the correct type - therefore gets processed first. Trying to delete such interface results in exception since interfaces with type "ethernet" can't be deleted.

      Example:
      Starting fresh VPP and honeycomb. Adding a single tap interface. Operational data:
      {
      "interfaces-state": {
      "interface": [

      { "name": "local0", "admin-status": "down", "type": "iana-if-type:ethernetCsmacd", "oper-status": "down", "if-index": 1 }

      ,
      {
      "name": "tapp",
      "type": "v3po:tap",
      "if-index": 2,
      "speed": 1000000000,
      "v3po:tap":

      { "tap-name": "tapp" }

      ,
      "v3po:ethernet":

      { "mtu": 9216, "duplex": "full" }

      ,
      "phys-address": "02:fe:98:c8:8c:3e",
      "admin-status": "up",
      "oper-status": "up"
      }
      ]
      }
      }

      Restarting honeycomb and listing the operational data again:

      {
      "interfaces-state": {
      "interface": [

      { "name": "local0", "admin-status": "down", "type": "iana-if-type:ethernetCsmacd", "oper-status": "down", "if-index": 1 }

      ,
      {
      "name": "tapp",
      "type": "v3po:tap",
      "if-index": 2,
      "speed": 1000000000,
      "v3po:ethernet":

      { "mtu": 9216, "duplex": "full" }

      ,
      "v3po:tap":

      { "tap-name": "tapp" }

      ,
      "phys-address": "02:fe:98:c8:8c:3e",
      "admin-status": "up",
      "oper-status": "up"
      }
      ]
      }
      }

      The "v3po:ethernet" switched places with "v3po:tap" and therefore this interface cannot be deleted anymore.

            Unassigned Unassigned
            tibor.kral Tibor Král
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d