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

fix_vlan.sh: Refactor script to allow dynamic EntityID instead of hard-coded 4354/4363 #94

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

rtsp
Copy link
Contributor

@rtsp rtsp commented Nov 17, 2022

My ISPs EntityID is different from the script so I adjust the script to work on any EntityID instead of hard-coded 4354/4363.

This script was tested on:

  • Hardware: ODI DFP-34X-2C2 (STICK3V06)
  • Firmware: M110_sfp_ODI_220923.tar
    • Modified by adding /etc/init.d/rc35 and /etc/scripts/fix_vlan.sh to the firmware

Everying working as expected after running the script and set FwdOp to 0x02

Before

# omcicli mib get 84
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VlanTagFilterData
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
=================================
EntityID: 0x01
FilterTbl[0]: PRI 0,CFI 0, VID 33
FwdOp:  0x04
NumOfEntries: 1
=================================
=================================
EntityID: 0x02
FilterTbl[0]: PRI 0,CFI 0, VID 492
FwdOp:  0x04
NumOfEntries: 1
=================================
=================================
EntityID: 0x03
FilterTbl[0]: PRI 0,CFI 0, VID 410
FilterTbl[2]: PRI 0,CFI 0, VID 2991
FwdOp:  0x04
NumOfEntries: 2
=================================

After

# omcicli mib get 84
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VlanTagFilterData
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
=================================
EntityID: 0x01
FilterTbl[0]: PRI 0,CFI 0, VID 33
FwdOp:  0x02
NumOfEntries: 1
=================================
=================================
EntityID: 0x02
FilterTbl[0]: PRI 0,CFI 0, VID 492
FwdOp:  0x02
NumOfEntries: 1
=================================
=================================
EntityID: 0x03
FilterTbl[0]: PRI 0,CFI 0, VID 410
FilterTbl[2]: PRI 0,CFI 0, VID 2991
FwdOp:  0x02
NumOfEntries: 2
=================================

@rtsp rtsp changed the title Refactor script to allow dynamic EntityID instead of hard-coded 4354/4363 fix_vlan.sh: Refactor script to allow dynamic EntityID instead of hard-coded 4354/4363 Nov 17, 2022
@Anime4000
Copy link
Owner

I been wondering what "FwdOP" means... mine was 0x10

# omcicli mib get 84
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VlanTagFilterData
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
=================================
EntityID: 0x1202
FilterTbl[0]: PRI 0,CFI 0, VID 621
FwdOp:  0x10
NumOfEntries: 1
=================================
=================================
EntityID: 0x1203
FilterTbl[0]: PRI 0,CFI 0, VID 821
FwdOp:  0x10
NumOfEntries: 1
=================================
=================================
EntityID: 0x1204
FilterTbl[0]: PRI 0,CFI 0, VID 822
FwdOp:  0x10
NumOfEntries: 1
=================================
=================================
EntityID: 0x120b
FilterTbl[0]: PRI 0,CFI 0, VID 621
FilterTbl[2]: PRI 0,CFI 0, VID 821
FilterTbl[4]: PRI 0,CFI 0, VID 822
FwdOp:  0x10
NumOfEntries: 3
=================================
=================================
EntityID: 0xe102
FilterTbl[0]: PRI 0,CFI 0, VID 209
FwdOp:  0x10
NumOfEntries: 1
=================================
=================================
EntityID: 0xe10b
FilterTbl[0]: PRI 0,CFI 0, VID 209
FwdOp:  0x10
NumOfEntries: 1
=================================

@Anime4000 Anime4000 merged commit 8f2d718 into Anime4000:main Nov 17, 2022
@rtsp
Copy link
Contributor Author

rtsp commented Nov 17, 2022

I been wondering what "FwdOP" means... mine was 0x10

I'm not exactly sure but it's stated in the GPON spec here https://www.itu.int/rec/T-REC-G.984.4 refer to clause 9.3.11

image

image

This document also explained almost every omcicli output if anyone interest

image

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.

3 participants