org.opensuse.Network.Bridge
Namespace
Properties
- stp (boolean). Enables Spanning Tree Protocol to handle multiple hops and avoid cyclic routes
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- forward-delay (double). Forwarding delay time is the time spent in each of the Listening and Learning states before the Forwarding state is entered.
- hello-time (double). Periodically, a hello packet is sent out by the Root Bridge and the Designated Bridges to communicate information about the topology throughout.
- max-age (double). If a another bridge in the spanning tree does not send out a hello packet for this period of time, it is assumed to be dead.
- aging-time (double). Ethernet (MAC) address ageing time. Setting it to 0 makes all entries permanent.
- gc-interval (double). Garbage collection interval for the bridge
- stp-state (uint32). This is a uint32 enumerated type, which can take the following values:
- none (0)
- kernel-stp (1)
- userspace-stp (2)
- ports (array). This is an array of port-status.
Methods
- void changeDevice(dict config)
-
Argument config is mapped to element <bridge> of the device document.
It is a dict-based type that provides the following members:
- stp (boolean). Enables Spanning Tree Protocol to handle multiple hops and avoid cyclic routes
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- forward-delay (double). Forwarding delay time is the time spent in each of the Listening and Learning states before the Forwarding state is entered.
- hello-time (double). Periodically, a hello packet is sent out by the Root Bridge and the Designated Bridges to communicate information about the topology throughout.
- max-age (double). If a another bridge in the spanning tree does not send out a hello packet for this period of time, it is assumed to be dead.
- aging-time (double). Ethernet (MAC) address ageing time. Setting it to 0 makes all entries permanent.
- gc-interval (double). Garbage collection interval for the bridge
- ports (array). This is an array of port-config.
- void deleteDevice()
-
- void addPort(port-config port)
-
- void removePort(string port)
-
Types defined in this scope
Type name |
Kind |
Definition |
port-config | dict | below |
port-status | dict | below |
bridge-config | dict | below |
configuration | dict | below |
Type port-config
Bridge port configuration properties
This is a dict-based type that provides the following members:
- device (string). This is a string
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- path-cost (uint32).
Type port-status
Bridge port configuration and status properties
This is a dict-based type that provides the following members:
- device (string). This is a string
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- path-cost (uint32).
- state (uint32).
- port-no (uint32).
- port-id (uint32).
Type bridge-config
Bridge interface configuration properties
This is a dict-based type that provides the following members:
- stp (boolean). Enables Spanning Tree Protocol to handle multiple hops and avoid cyclic routes
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- forward-delay (double). Forwarding delay time is the time spent in each of the Listening and Learning states before the Forwarding state is entered.
- hello-time (double). Periodically, a hello packet is sent out by the Root Bridge and the Designated Bridges to communicate information about the topology throughout.
- max-age (double). If a another bridge in the spanning tree does not send out a hello packet for this period of time, it is assumed to be dead.
- aging-time (double). Ethernet (MAC) address ageing time. Setting it to 0 makes all entries permanent.
- gc-interval (double). Garbage collection interval for the bridge
Type configuration
Bridge and port configuration properties
This is a dict-based type that provides the following members:
- stp (boolean). Enables Spanning Tree Protocol to handle multiple hops and avoid cyclic routes
- priority (uint32). This is a uint32 range type with values from 0 to infinity
- forward-delay (double). Forwarding delay time is the time spent in each of the Listening and Learning states before the Forwarding state is entered.
- hello-time (double). Periodically, a hello packet is sent out by the Root Bridge and the Designated Bridges to communicate information about the topology throughout.
- max-age (double). If a another bridge in the spanning tree does not send out a hello packet for this period of time, it is assumed to be dead.
- aging-time (double). Ethernet (MAC) address ageing time. Setting it to 0 makes all entries permanent.
- gc-interval (double). Garbage collection interval for the bridge
- ports (array). This is an array of port-config.