L2+#
Note
Applicable to Chimera port only.
Type#
Defines what Layer 2+ protocols that are present and may be used for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_L2PUSE
await filter.l2plus_use.set(use=enums.L2PlusPresent.VLAN1)
await filter.l2plus_use.set_vlan1()
await filter.l2plus_use.set(use=enums.L2PlusPresent.VLAN2)
await filter.l2plus_use.set_vlan2()
await filter.l2plus_use.set(use=enums.L2PlusPresent.MPLS)
await filter.l2plus_use.set_mpls()
await filter.l2plus_use.set(use=enums.L2PlusPresent.NA)
await filter.l2plus_use.set_na()
resp = await filter.l2plus_use.get()
resp.use
VLAN Inner Tag#
Basic mode only. Defines the VLAN TAG settings for the VLAN filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_VLANTAG
await filter.vlan.inner.tag.set(use=enums.OnOff.ON, value=1234, mask=Hex("0FFF"))
await filter.vlan.inner.tag.set_on()
await filter.vlan.inner.tag.set(use=enums.OnOff.OFF, value=1234, mask=Hex("0FFF"))
await filter.vlan.inner.tag.set_off()
resp = await filter.vlan.inner.tag.get()
resp.use
resp.value
resp.mask
VLAN Inner PCP#
Basic mode only. Defines the VLAN PCP settings for the VLAN filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_VLANPCP
await filter.vlan.inner.pcp.set(use=enums.OnOff.ON, value=3, mask=Hex("07"))
await filter.vlan.inner.pcp.set_on()
await filter.vlan.inner.pcp.set(use=enums.OnOff.OFF, value=3, mask=Hex("07"))
await filter.vlan.inner.pcp.set_off()
resp = await filter.vlan.inner.pcp.get()
resp.use
resp.value
resp.mask
VLAN Outer Tag#
Basic mode only. Defines the VLAN TAG settings for the VLAN filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_VLANTAG
await filter.vlan.outer.tag.set(use=enums.OnOff.ON, value=1234, mask=Hex("0FFF"))
await filter.vlan.outer.tag.set_on()
await filter.vlan.outer.tag.set(use=enums.OnOff.OFF, value=1234, mask=Hex("0FFF"))
await filter.vlan.outer.tag.set_off()
resp = await filter.vlan.outer.tag.get()
resp.use
resp.value
resp.mask
VLAN Outer PCP#
Basic mode only. Defines the VLAN PCP settings for the VLAN filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_VLANPCP
await filter.vlan.outer.pcp.set(use=enums.OnOff.ON, value=3, mask=Hex("07"))
await filter.vlan.outer.pcp.set_on()
await filter.vlan.outer.pcp.set(use=enums.OnOff.OFF, value=3, mask=Hex("07"))
await filter.vlan.outer.pcp.set_off()
resp = await filter.vlan.outer.pcp.get()
resp.use
resp.value
resp.mask
VLAN Settings#
Defines what filter action is performed on the VLAN header.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_VLANSETTINGS
await filter.vlan.settings.set(use=enums.FilterUse.OFF, action=enums.InfoAction.EXCLUDE)
await filter.vlan.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)
await filter.vlan.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.INCLUDE)
resp = await filter.vlan.settings.get()
resp.use
resp.action
MPLS Label#
Basic mode only. Defines the MPLS label settings for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_MPLSLABEL
await filter.mpls.label.set(use=enums.OnOff.ON, value=1000, mask=Hex("FFFFF"))
await filter.mpls.label.set(use=enums.OnOff.OFF, value=1000, mask=Hex("FFFFF"))
resp = await filter.mpls.label.get()
resp.use
resp.value
MPLS TOC#
Basic mode only. Defines the MPLS TOC settings for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_MPLSTOC
await filter.mpls.toc.set(use=enums.OnOff.ON, value=0, mask=Hex("07"))
await filter.mpls.toc.set(use=enums.OnOff.OFF, value=0, mask=Hex("07"))
resp = await filter.mpls.toc.get()
resp.use
resp.value
MPLS Settings#
Basic mode only. Defines what filter action is performed on the MPLS header.
Corresponding CLI command: PEF_MPLSSETTINGS
await filter.mpls.settings.set(use=enums.FilterUse.OFF, action=enums.InfoAction.EXCLUDE)
await filter.mpls.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)
await filter.mpls.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.INCLUDE)
resp = await filter.mpls.settings.get()
resp.use
resp.action