Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrote part of H3C's NasPortToIfIndex subroutine to fix behaviour fo… #8062

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

bmp96
Copy link

@bmp96 bmp96 commented Apr 4, 2024

…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

@CLAassistant
Copy link

CLAassistant commented Apr 4, 2024

CLA assistant check
All committers have signed the CLA.

@bmp96 bmp96 force-pushed the fix/Comware_v7-stacked-nas_port-translate branch from fb6a386 to 93e9aa8 Compare April 17, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong NAS-Port translation for stacked Comware v7 switches
2 participants