This module allows to configure network scenarios at layer 2. The STP and RSTP related parameters such as link cost, port priority and the "is-edge" flag can be configured with XML files.
This module is based on IPv4NetworkConfigurator. The optional selector attributes: @hosts, @names, @towards, @among are also comes with this configurator and each of them behaves similarly to its IPv4NetworkConfigurator equivalent. @ports selector added to configuring per-port parameters in Ieee8021dInterfaceData.
The following example configures port 5 (if it exists) on all switches to cost 19 and priority 32768: <config> <interface hosts='**' ports='5' cost='19' priority='32768'/> </config>
For more information about the usage of the selector attributes see IPv4NetworkConfigurator.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
SwitchNetwork | network | (no description) |
Name | Type | Default value | Description |
---|---|---|---|
config | xml | xml(" |
Name | Value | Description |
---|---|---|
display | i=block/cogwheel_s |
// // This module allows to configure network scenarios at layer 2. // The ~STP and ~RSTP related parameters such as link cost, port priority // and the "is-edge" flag can be configured with XML files. // // This module is based on ~IPv4NetworkConfigurator. The optional selector // attributes: @hosts, @names, @towards, @among are also comes with this // configurator and each of them behaves similarly to its ~IPv4NetworkConfigurator equivalent. // @ports selector added to configuring per-port parameters in Ieee8021dInterfaceData. // // The following example configures port 5 (if it exists) on all switches to cost 19 and // priority 32768: // <config> // <interface hosts='**' ports='5' cost='19' priority='32768'/> // </config> // // For more information about the usage of the selector attributes see // ~IPv4NetworkConfigurator. // simple L2NetworkConfigurator { parameters: @display("i=block/cogwheel_s"); xml config = default(xml("<config><interface hosts='**' ports='**' cost='19' priority='128' edge='false'/></config>")); }