A port can be added, deleted, turned up, or turned down, dynamically. The add-port command has been tested. To delete a port, use ovs-vsctl del-port br0 ge-1/1/1. Port state can also be modified with the mod−port command ovs-ofctl mod-port br0 ge-1/1/1 action. The keyword action can be one of the following parameters:
- Up or down
Enable or disable the interface. This is equivalent to ifconfig up or ifconfig down on a Linux system.
- Stp or no−stp
Enable or disable 802.1D spanning tree protocol (STP) on the interface. OpenFlow implementations that don't support STP will refuse to enable it.
- Receive or no−receive/receive−stp or no−receive−stp
Enable or disable OpenFlow processing of packets received on this interface. When packet processing is disabled, packets will be dropped instead of being processed through the OpenFlow table. The receive or no−receive setting applies to all packets except 802.1D spanning tree packets, which are separately controlled by receive−stp or no−receive−stp.
- Forward or no−forward
Allow or disallow forwarding of traffic to this interface. By default, forwarding is enabled.
- Flood or no−flood
Controls whether an OpenFlow flood action will send traffic out this interface. By default, flooding is enabled. Disabling flooding is primarily useful to prevent loops when a spanning tree protocol is not in use.
- packet−in or no−packet−in
Controls whether packets received on this interface that do not match a flow table entry generate a ''packet in'' message to the OpenFlow controller. By default, ''packet in'' messages are enabled.
Again, the show command displays (among other information) the configuration that mod−port changes.