L2#

Note

Applicable to Chimera port only.

Ethernet DST#

Defines the Ethernet Destination Address settings for the Ethernet filter.

Note

For SET, the only allowed _filter_type is shadow-copy

Corresponding CLI command: PEF_ETHDESTADDR

await filter.ethernet.dest_address.set(use=enums.OnOff.OFF, value=Hex("BBBBBBBBBBBB"), mask=Hex("FFFFFFFFFFFF"))
await filter.ethernet.dest_address.set(use=enums.OnOff.ON, value=Hex("BBBBBBBBBBBB"), mask=Hex("FFFFFFFFFFFF"))

resp = await filter.ethernet.dest_address.get()
resp.use
resp.value
resp.mask

Ethernet SRC#

Defines the Ethernet Source Address settings for the Ethernet filter.

Note

For SET, the only allowed _filter_type is shadow-copy

Corresponding CLI command: PEF_ETHSRCADDR

await filter.ethernet.src_address.set(use=enums.OnOff.OFF, value=Hex("AAAAAAAAAAAA"), mask=Hex("FFFFFFFFFFFF"))
await filter.ethernet.src_address.set(use=enums.OnOff.ON, value=Hex("AAAAAAAAAAAA"), mask=Hex("FFFFFFFFFFFF"))

resp = await filter.ethernet.src_address.get()
resp.use
resp.value
resp.mask

Ethernet Settings#

Defines what filter action is performed on the Ethernet header.

Note

For SET, the only allowed _filter_type is shadow-copy

Corresponding CLI command: PEF_ETHSETTINGS

await filter.ethernet.settings.set(use=enums.FilterUse.OFF, action=enums.InfoAction.EXCLUDE)
await filter.ethernet.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)
await filter.ethernet.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)

resp = await filter.ethernet.settings.get()
resp.use
resp.action