packetfence
packetfence copied to clipboard
Rewrote part of H3C's NasPortToIfIndex subroutine to fix behaviour fo…
…r stacked Comware v7 switches
Description
Fix NAS-Port translation to ifIndex in Comware v7 stacked switches rewriting H3C's NasPortToIfIndex and overriding it.
# For Switch slot 2/0/5 with VLAN 510:
# VLAN ID are last 3 nibbles ────────────────┐
# Port is next 2 nibbles ────────────┐ │
# Subslot is next 1 nibble ──────────┐ │ │
# Slot is next 2 nibbles ───────┐ │ │ │
# Example: 33575422 --to hex--> (02)(0)(05)(1FE)
Impacts
Comware_v7.pm is now overriding H3C.pm's NasPortToIfIndex subroutine. ifIndex calculation logic has been changed based in issue's #8057 description.
Issue
fixes #8057
Delete branch after merge
YES
Bug Fixes
- Wrong NAS-Port translation for stacked Comware v7 switches (#8057)