Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-963

Q-BRIDGE-MIB vlan mapping code incorrectly assumes ifIndex starts with 0

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None

    Description

      None of the devices I own have ifIndexes that begin with 0 (arista, HP, brocade/foundry). Mainly noticed this with my Brocade devices as the vlan to port mappings were off.

      I've attached a patch that uses the $vlan_ifindex_map someone setup but didn't complete implementation. This patch looks in the lowest index of $vlan_ifindex_map for the dot1dBasePortIfIndex to determine the lowest possible ifIndex and adds that to the index used to assign vlans found to ports as an offset.

      I recommend not blindly accepting this patch and testing it in your own environment to ensure it doesn't break your stuff.

      Attachments

        Activity

          [OBS-963] Q-BRIDGE-MIB vlan mapping code incorrectly assumes ifIndex starts with 0
          landy Mike Stupalov made changes -
          Workflow Original: classic default workflow [ 11823 ] New: Observium workflow [ 14237 ]
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

          If I send you debug from one, can you have a look ?

          Of course

          landy Mike Stupalov added a comment - If I send you debug from one, can you have a look ? Of course

          Hey Mike
          Still problem with correct vlan for the larger HP switches (ok on smaller ones)
          If I send you debug from one, can you have a look ?

          kentbjoh Kent Johannessen added a comment - Hey Mike Still problem with correct vlan for the larger HP switches (ok on smaller ones) If I send you debug from one, can you have a look ?
          landy Mike Stupalov made changes -
          Labels New: patch vlan
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Fixed in r6022.

          landy Mike Stupalov added a comment - Fixed in r6022.

          This patch not generic for any device os.. for example in Dell/Force10 used specific indexes..

          landy Mike Stupalov added a comment - This patch not generic for any device os.. for example in Dell/Force10 used specific indexes..

          Hi
          I found that just using: $ifindex = $i+1; fixed vlan mapping on all my HP ProCruve switches, both smaller ones and larger.
          Someone with other devices using Q-BRIDGE-MIB should also check this.

          kentbjoh Kent Johannessen added a comment - Hi I found that just using: $ifindex = $i+1; fixed vlan mapping on all my HP ProCruve switches, both smaller ones and larger. Someone with other devices using Q-BRIDGE-MIB should also check this.

          let me see if I can talk to Kent to see exactly how this affects his larger switches.

          cheethoe Michael Hsu added a comment - let me see if I can talk to Kent to see exactly how this affects his larger switches.

          People

            landy Mike Stupalov
            cheethoe Michael Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: