Switch L2 Forwarding
1. Controlling the Forwarding state of the port.
The port forwarding state is by default enabled and frames are forwarded to and from the port depending on the VLAN configuration.
Forwarding can be disabled on a port without affecting the link status.
Lets get the forwarding state to confirm that forwarding is enabled.
The interface (port) name is '1'
FETCH
request message.
- "/ietf-interfaces:interfaces/interface[name='1']/\
ieee802-dot1q-bridge:bridge-port/\
mchp-velocitysp-bridge:forwarding-disable"
FETCH
response message.
- ? "/ietf-interfaces:interfaces/interface/ieee802-dot1q-bridge:bridge-port/\
mchp-velocitysp-bridge:forwarding-disable"
: false
Now disable forwarding:
IPATCH
request message.
- ? "/ietf-interfaces:interfaces/interface[name='1']/\
ieee802-dot1q-bridge:bridge-port/\
mchp-velocitysp-bridge:forwarding-disable"
: true
Confirm that the forwarding state is disabled:
FETCH
request message.
- "/ietf-interfaces:interfaces/interface[name='1']/\
ieee802-dot1q-bridge:bridge-port/\
mchp-velocitysp-bridge:forwarding-disable"
FETCH
response message.
- ? "/ietf-interfaces:interfaces/interface/ieee802-dot1q-bridge:bridge-port/\
mchp-velocitysp-bridge:forwarding-disable"
: true