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

          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 ?

          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.

          having two open issues made it confusing enough that no one wants to read about it.

          i have no idea what needs to be applied, what fixes what, or anything.

          adama Adam Armstrong added a comment - having two open issues made it confusing enough that no one wants to read about it. i have no idea what needs to be applied, what fixes what, or anything.

          Any update on this?

          cheethoe Michael Hsu added a comment - Any update on this?
          cheethoe Michael Hsu added a comment - - edited

          our HP switches are the smaller kind, 2650, 2610, 2824. I don't have any larger HP switches to test with. Question, are the indexes off for your 5400 and 8200 prior to the patch?.

          cheethoe Michael Hsu added a comment - - edited our HP switches are the smaller kind, 2650, 2610, 2824. I don't have any larger HP switches to test with. Question, are the indexes off for your 5400 and 8200 prior to the patch?.

          Hi
          I tried this patch and Observium-964 on my test environment. We have lots of HP ProCurve and the patches fixes vlan mapping on smaller switches (< 48 ports) likes 2510,2520,2650 etc, but on larger switches 5400, 8200 the indexes are off.
          Will try to do some more troubleshooting on this later today.
          What kind of HP switches do you run ?

          kentbjoh Kent Johannessen added a comment - Hi I tried this patch and Observium-964 on my test environment. We have lots of HP ProCurve and the patches fixes vlan mapping on smaller switches (< 48 ports) likes 2510,2520,2650 etc, but on larger switches 5400, 8200 the indexes are off. Will try to do some more troubleshooting on this later today. What kind of HP switches do you run ?

          People

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

            Dates

              Created:
              Updated:
              Resolved: