Networking::STPInstanceV2::set_interface_priority

Introduced : BIG-IP_v11.0.0
Sets the priorities for the specified network interfaces in the specified spanning tree instances. These priority values influence which interfaces are chosen to carry network traffic. Interfaces with numerically lower values are favored to carry traffic. Interface priorities have values in the range from 0-240 in steps of 16. Hence, the supported priorities are: 0 64 128 192 16 80 144 208 32 96 160 224 48 112 176 240 The default interface priority is 128. If the specified interface priority is not one of the allowed values listed above, it is rounded down to the next lower value in the list. In STP or RSTP mode, only STP intance 0 is valid.

Prototype

 set_interface_priority(
    in String [] stp_instances,
    in String [] [] interfaces,
    in long [] [] priorities
);

Parameters

Parameter Type Description
stp_instances String [] The spanning tree instance names.
interfaces String [] [] The interfaces/trunks from which to get the active states.
priorities long [] [] The interface priorities of the specified interfaces in the spanning tree instances.

Return Type

Type Description
void  

Exceptions

Exception Description
Common::AccessDenied Raised if the client credentials are not valid.
Common::InvalidArgument Raised if one of the arguments is invalid.
Common::OperationFailed Raised if an operation error occurs.

See Also

Warning

The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.

Sample Code


The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.