I didn't understand your first question
see debug output
# debug vlan show vpifs "PTP_rt1_msk-rt7_msk" 46
Process: vlan --- Printing all vpif Start ********************
Total no of vpifs in the system: 11
VLAN: Mgmt, port:1:49, vlanId:4095, instance: 50000001, tag: 0,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:MGMT linkState:0 phyLinkState:0]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x0
VLAN: GGC-SERVERS, port:1:46, vlanId:883, instance: 50000455, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: GGC-SERVERS, port:1:1, vlanId:883, instance: 50000456, tag: 0,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:SLOTPORT linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: GGC-SERVERS, port:1:2, vlanId:883, instance: 50000457, tag: 0,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:SLOTPORT linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: GGC-SERVERS, port:1:3, vlanId:883, instance: 50000458, tag: 0,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:SLOTPORT linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: rt1_msk-sw120_msk_MPLS, port:1:46, vlanId:383, instance: 50000459, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: rt6-msk-rt1-msk_v160, port:1:46, vlanId:102, instance: 50000460, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: rt6-msk-rt1-msk_v160, port:1:47, vlanId:102, instance: 50000461, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:0 phyLinkState:0]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: sw120_msk-rt3_msk_MPLS, port:1:42, vlanId:367, instance: 50000462, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: PTP_rt1_msk-rt7_msk, port:1:46, vlanId:350, instance: 50000463, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
VLAN: PTP_rt1_msk-rt7_msk, port:1:39, vlanId:350, instance: 50000464, tag: 1,
Ingress:0x5, Egress: 0x1, l2 prot priority: 0, cfgSave: TRUE
l2Protos (IDs): 0x0 [PIF: type:TRUNK linkState:1 phyLinkState:1]
uRPF[-]:0, isTrillAppointedForwarder:0 isTrillDesignated:0
clientUsage: 0x10
Egress and Ingres state bit definitions
typedef enum ifIngressState_ {
IF_STATE_ENABLE_LEARNING= 0x1,
IF_STATE_DISABLE_LEARNING = 0x2,
IF_STATE_ALLOW_ALL = 0x4,
IF_STATE_ALLOW_AUTH_MAC = 0x8,
IF_STATE_SLOWPATH_PROCESSING = 0x10,
IF_STATE_IN_BLOCK_ALL = 0x20,
IF_STATE_IN_BLOCK_DATA = 0x40,
IF_STATE_INVALID = 0xffffffff,
} ifIngressState_t;
typedef enum ifEgressState_ {
IF_STATE_FORWARDING = 0x1,
IF_STATE_EG_BLOCK_ALL = 0x2,
IF_STATE_BLOCK_FLOODING = 0x4,
IF_STATE_EG_BLOCK_DATA = 0x8,
IF_STATE_BLOCK_BROAD_CAST = 0x10,
} ifEgressState_t;
Layer 2 protocols , ids and their priorities(lower values have higher precedence
Protocol: SRP , ID: 0x1, Priority: 8001
Protocol: netLogin , ID: 0x2, Priority: 10001
Protocol: VRRP , ID: 0x4, Priority: 40001
Protocol: ESRP , ID: 0x8, Priority: 30001
Protocol: ELSM , ID: 0x10, Priority: 7001
Protocol: ETHOAM , ID: 0x20, Priority: 6001
Protocol: ERPS , ID: 0x40, Priority: 10050
Protocol: stp , ID: 0x80, Priority: 9001
Protocol: brm , ID: 0x100, Priority: 50001
Protocol: FIP , ID: 0x200, Priority: 60001
Protocol: EAPS , ID: 0x400, Priority: 20001
gMacArray[0]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[1]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[2]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[3]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[4]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[5]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[6]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0
gMacArray[7]: cnt:0 Addr 0.0.0.0.0.0 src: 0 in_use: 0