Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_dot1s.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_dot1s.h
28 *
29 * @purpose Spanning Tree Configuration and Status
30 *
31 * @component OPEN
32 *
33 * @create 10/25/2012
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_DOT1S_H_INCLUDED
39 #define OPENAPI_DOT1S_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 typedef enum
44 {
51 
52 typedef enum
53 {
58 
59 typedef enum
60 {
63 
64 typedef enum
65 {
73 
74 typedef enum
75 {
84 
85 #define OPENAPI_DOT1S_CST_ID 0
86 #define OPENAPI_DOT1S_MSTID_MAX 4094
87 
88 #define OPEN_DOT1S_VLAN_ID_LEN 2
89 #define OPEN_DOT1S_MAC_ID_LEN OPEN_MAC_ADDR_LEN
90 #define OPEN_DOT1S_VID_MAC_ADDR_LEN (OPEN_DOT1S_VLAN_ID_LEN + OPEN_DOT1S_MAC_ID_LEN)
91 
92 #define OPEN_DOT1S_BRIDGE_MAXAGE_MIN 6
93 #define OPEN_DOT1S_BRIDGE_MAXAGE_MAX 40
94 #define OPEN_DOT1S_BRIDGE_FORWARDDELAY_MIN 4
95 #define OPEN_DOT1S_BRIDGE_FORWARDDELAY_MAX 30
96 #define OPEN_DOT1S_BRIDGE_MAXHOP_MIN 6
97 #define OPEN_DOT1S_BRIDGE_MAXHOP_MAX 40
98 #define OPEN_DOT1S_BRIDGE_HOLDCOUNT_MIN 1
99 #define OPEN_DOT1S_BRIDGE_HOLDCOUNT_MAX 10
100 
101 #define OPEN_DOT1S_CONFIG_DIGEST_SIZE 16
102 
107 typedef struct
108 {
109  uint8_t octets[OPEN_DOT1S_VID_MAC_ADDR_LEN];
111 
112 
113 /*****************************************************************/
130  OPEN_DOT1S_MGMT_STR_t strType,
131  uint32_t *strLen);
132 
133 /*****************************************************************/
147  uint32_t *vlanMax);
148 
149 /*****************************************************************/
166  OPEN_CONTROL_t dot1sMode);
167 
168 /*****************************************************************/
184  OPEN_CONTROL_t *dot1sMode);
185 
186 /*****************************************************************/
204  uint32_t ifNum,
205  OPEN_CONTROL_t dot1sBPDUFilterMode);
206 
207 /*****************************************************************/
224  uint32_t ifNum,
225  OPEN_CONTROL_t *dot1sBPDUFilterMode);
226 
227 /*****************************************************************/
245  uint32_t ifNum,
246  OPEN_CONTROL_t dot1sBPDUFloodMode);
247 
248 /*****************************************************************/
265  uint32_t ifNum,
266  OPEN_CONTROL_t *dot1sBPDUFloodMode);
267 
268 /*****************************************************************/
284  OPEN_CONTROL_t dot1sBPDUGuard);
285 
286 /*****************************************************************/
301  OPEN_CONTROL_t *dot1sBPDUGuard);
302 
303 /*****************************************************************/
319  OPEN_CONTROL_t dot1sBPDUFilter);
320 
321 /*****************************************************************/
336  OPEN_CONTROL_t *dot1sBPDUFilter);
337 
338 /*****************************************************************/
357  open_buffdesc *dot1sConfigName);
358 
359 /*****************************************************************/
376  open_buffdesc *dot1sConfigName);
377 
378 /*****************************************************************/
396  uint32_t dot1sConfigRev);
397 
398 /*****************************************************************/
413  uint32_t *dot1sConfigRev);
414 
415 /*****************************************************************/
431  OPEN_DOT1S_FORCE_VERSION_t dot1sForceVersion);
432 
433 /*****************************************************************/
448  OPEN_DOT1S_FORCE_VERSION_t *dot1sForceVersion);
449 
450 /*****************************************************************/
466 open_error_t openapiDot1SIntfGuardModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum,
467  OPEN_DOT1S_PORT_GUARD_t dot1sGuardMode);
468 
469 /*****************************************************************/
486  uint32_t ifNum,
487  OPEN_DOT1S_PORT_GUARD_t *dot1sGuardMode);
488 
489 /*****************************************************************/
508  uint32_t dot1sMSTInstanceId,
509  OPEN_ACTION_t action);
510 
511 /*****************************************************************/
526  uint32_t *instanceId);
527 
528 /*****************************************************************/
544  uint32_t currInstance,
545  uint32_t *nextInstance);
546 
547 /*****************************************************************/
568  uint32_t dot1sMSTInstance,
569  uint32_t priority);
570 
571 /*****************************************************************/
587  uint32_t dot1sMSTInstance,
588  uint16_t *priority);
589 
590 /*****************************************************************/
612  uint32_t dot1sMSTInstance,
613  uint32_t vlan,
614  OPEN_ACTION_t action);
615 /*****************************************************************/
631  uint32_t dot1sInstance,
632  uint32_t *VLANId);
633 
634 /*****************************************************************/
651  uint32_t dot1sInstance,
652  uint32_t currVLANId, uint32_t *nextVLANId);
653 
654 /*****************************************************************/
670  uint32_t dot1sInstance,
671  uint32_t *FId);
672 
673 /*****************************************************************/
690  uint32_t dot1sInstance,
691  uint32_t currFId, uint32_t *nextFId);
692 
693 /*************************************************************************/
713  uint32_t dot1sMSTInstance,
715 
716 /*************************************************************************/
736  uint32_t dot1sMSTInstance,
737  uint32_t *timeVal);
738 
739 /*************************************************************************/
759  uint32_t dot1sMSTInstance,
760  uint32_t *count);
761 
762 /*************************************************************************/
783  uint32_t dot1sMSTInstance,
784  OPEN_BOOL_t *change);
785 
786 /*************************************************************************/
806  uint32_t dot1sMSTInstance,
807  OPEN_DOT1S_BRIDGEID_t *rootId);
808 
809 /*************************************************************************/
829  uint32_t dot1sMSTInstance,
830  uint32_t *cost);
831 
832 /*************************************************************************/
852  uint32_t dot1sMSTInstance,
853  uint32_t *port);
854 
855 /*************************************************************************/
870  uint32_t *age);
871 
872 /*************************************************************************/
887  uint32_t *count);
888 
889 /*************************************************************************/
904  uint32_t *count);
905 
906 /*************************************************************************/
921  uint32_t *delay);
922 
923 /*************************************************************************/
939  uint32_t ifNum,
940  uint32_t *helloTime);
941 
942 /*************************************************************************/
957  uint32_t *holdTime);
958 
959 /*************************************************************************/
974  OPEN_DOT1S_BRIDGEID_t *rootId);
975 
976 /*************************************************************************/
991  uint32_t *cost);
992 
993 /*****************************************************************/
1010  uint32_t ifNum,
1011  OPEN_CONTROL_t dot1sMode);
1012 
1013 /*****************************************************************/
1030  uint32_t ifNum,
1031  OPEN_CONTROL_t *dot1sMode);
1032 
1033 /*****************************************************************/
1050  uint32_t ifNum,
1051  uint32_t dot1sInstance,
1052  OPEN_DOT1S_PORT_FWD_STATE_t *dot1sPortFwdState);
1053 
1054 /*****************************************************************/
1071  uint32_t ifNum,
1072  uint32_t dot1sInstance,
1073  OPEN_DOT1S_PORT_ROLE_t *dot1sPortRole);
1074 
1075 /*****************************************************************/
1093  uint32_t ifNum,
1094  uint32_t dot1sInstance,
1095  OPEN_BOOL_t *loopInconsistentState);
1096 
1097 /*****************************************************************/
1114  uint32_t ifNum,
1115  OPEN_CONTROL_t dot1sEdgePortMode);
1116 
1117 /*****************************************************************/
1135  uint32_t ifNum,
1136  uint32_t *dot1sEdgePortMode);
1137 
1138 /*****************************************************************/
1155  uint32_t ifNum,
1156  uint32_t *helloTime);
1157 
1158 /*****************************************************************/
1175  uint32_t ifNum,
1176  OPEN_CONTROL_t *mode);
1177 
1178 /*****************************************************************/
1198  uint32_t dot1sMSTInstance,
1199  uint32_t ifNum,
1200  open_buffdesc *portID);
1201 
1202 /*****************************************************************/
1221  uint32_t dot1sMSTInstance,
1222  uint32_t ifNum,
1223  uint32_t priority);
1224 
1225 /*****************************************************************/
1244  uint32_t dot1sMSTInstance,
1245  uint32_t ifNum,
1246  uint32_t *priority);
1247 
1248 /*****************************************************************/
1267  uint32_t dot1sMSTInstance,
1268  uint32_t ifNum,
1269  OPEN_CONTROL_t *costMode);
1270 
1271 /*****************************************************************/
1290  uint32_t dot1sMSTInstance,
1291  uint32_t ifNum,
1292  uint32_t pCost);
1293 
1294 /*****************************************************************/
1313  uint32_t dot1sMSTInstance,
1314  uint32_t ifNum,
1315  uint32_t *portCost);
1316 
1317 /*****************************************************************/
1333  uint32_t ifNum,
1334  OPEN_CONTROL_t *costMode);
1335 
1336 /*****************************************************************/
1352  uint32_t ifNum,
1353  uint32_t *portCost);
1354 
1355 /*****************************************************************/
1371  uint32_t ifNum,
1372  uint32_t portCost);
1373 
1374 /*****************************************************************/
1392  uint32_t dot1sMSTInstance,
1393  uint32_t ifNum,
1394  open_buffdesc *rootID);
1395 
1396 /*****************************************************************/
1414  uint32_t dot1sMSTInstance,
1415  uint32_t ifNum,
1416  uint32_t *dCost);
1417 
1418 /*****************************************************************/
1436  uint32_t dot1sMSTInstance,
1437  uint32_t ifNum,
1438  open_buffdesc *bridgeID);
1439 
1440 /*****************************************************************/
1458  uint32_t dot1sMSTInstance,
1459  uint32_t ifNum,
1460  open_buffdesc *portID);
1461 
1462 /*****************************************************************/
1479  uint32_t ifNum,
1480  OPEN_BOOL_t *val);
1481 
1482 /*****************************************************************/
1497  uint32_t *helloTime);
1498 
1499 /*****************************************************************/
1516  uint32_t ifNum,
1517  OPEN_BOOL_t *status);
1518 
1519 /*****************************************************************/
1537  uint32_t ifNum,
1538  OPEN_BOOL_t *status);
1539 
1540 /*****************************************************************/
1556  uint32_t ifNum,
1557  open_buffdesc *bridgeID);
1558 
1559 /*****************************************************************/
1575  uint32_t ifNum,
1576  uint32_t *portCost);
1577 
1578 /*****************************************************************/
1595  uint32_t dot1sMSTInstance,
1596  uint32_t ifNum,
1597  OPEN_BOOL_t *status);
1598 
1599 /*****************************************************************/
1616 open_error_t
1618  openapiClientHandle_t *client_handle,
1619  uint32_t dot1sMSTInstance,
1620  uint32_t ifNum,
1621  uint32_t *loopCount);
1622 
1623 /*****************************************************************/
1640 open_error_t
1642  openapiClientHandle_t *client_handle,
1643  uint32_t dot1sMSTInstance,
1644  uint32_t ifNum,
1645  uint32_t *loopCount);
1646 
1647 /*****************************************************************/
1662  uint32_t ifNum);
1663 
1664 /*****************************************************************/
1681  uint32_t ifNum,
1682  OPEN_BOOL_t *mode);
1683 
1684 /*****************************************************************/
1701  uint32_t ifNum,
1702  OPEN_BOOL_t val);
1703 
1704 /*****************************************************************/
1721  uint32_t ifNum,
1722  OPEN_BOOL_t *mode);
1723 
1724 /*****************************************************************/
1741  uint32_t ifNum,
1742  OPEN_BOOL_t mode);
1743 
1744 /*****************************************************************/
1760  uint32_t ifNum,
1761  open_buffdesc *upTime);
1762 
1763 /*****************************************************************/
1779  uint32_t ifNum,
1780  uint32_t *val);
1781 
1782 /*****************************************************************/
1798  uint32_t ifNum,
1799  uint32_t *val);
1800 
1801 /*****************************************************************/
1817  uint32_t ifNum,
1818  uint32_t *val);
1819 
1820 /*****************************************************************/
1836  uint32_t ifNum,
1837  uint32_t *val);
1838 
1839 /*****************************************************************/
1855  uint32_t ifNum,
1856  uint32_t *val);
1857 
1858 /*****************************************************************/
1874  uint32_t ifNum,
1875  uint32_t *val);
1876 
1877 /*************************************************************************/
1892  uint32_t *maxAge);
1893 
1894 /*************************************************************************/
1910  uint32_t maxAge);
1911 
1912 /*************************************************************************/
1927  uint32_t *helloTime);
1928 
1929 /*************************************************************************/
1944  uint32_t *fwdDelay);
1945 
1946 /*************************************************************************/
1962  uint32_t fwdDelay);
1963 
1964 /*************************************************************************/
1980  uint32_t maxHopCount);
1981 
1982 /*************************************************************************/
1999  uint32_t txHoldCount);
2000 
2001 /*************************************************************************/
2016  uint32_t *fwdDelay);
2017 
2018 /*************************************************************************/
2034  uint32_t *portId);
2035 
2036 /*************************************************************************/
2053  uint32_t mstId, uint32_t ifNum,
2054  uint32_t *portPathCost);
2055 
2056 /*************************************************************************/
2071  open_buffdesc *digestKeyBuf);
2072 
2073 /*************************************************************************/
2091 open_error_t
2093  uint32_t mstID, uint32_t *days,
2094  uint32_t *hours, uint32_t *minutes,
2095  uint32_t *seconds);
2096 
2097 /*************************************************************************/
2117  uint32_t mstID, uint32_t prevIntIfNum,
2118  uint32_t *intIfNum);
2119 
2120 #endif /* OPENAPI_DOT1S_H_INCLUDED */
2121 
open_error_t openapiDot1SCistPortTopologyChangeAckGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *val)
Gets the CIST Topology Change Acknowledge parameter for a specific port in the CIST.
open_error_t openapiDot1SBPDUFilterModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *dot1sBPDUFilter)
Gets the Spanning Tree BPDU Filter Mode.
open_error_t openapiDot1sBridgeTxHoldCountSet(openapiClientHandle_t *client_handle, uint32_t txHoldCount)
Set the MSTP transmit hold count parameter for the device.
open_error_t openapiDot1SModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *dot1sMode)
Gets Spanning Tree Operational Mode.
IEEE 802.1s Multiple Spanning Tree.
Definition: openapi_dot1s.h:48
open_error_t openapiDot1SIntfEdgePortModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *dot1sEdgePortMode)
Gets the Spanning Tree MST Port Administrative Edge Port mode of an interface for the CIST...
open_error_t openapiDot1SMSTInstancePrioritySet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t priority)
Configures Spanning Tree MST Instance priority.
open_error_t openapiDot1SCistPortOperPointToPointGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the CIST Operational Point to Point Mac parameter of a specific port.
open_error_t openapiDot1SIntfPortRoleGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t dot1sInstance, OPEN_DOT1S_PORT_ROLE_t *dot1sPortRole)
Gets Spanning Tree Port Role.
String type Configuration name.
Definition: openapi_dot1s.h:61
open_error_t openapiDot1SMstiPortPathCostSet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t pCost)
Set the MSTP Port Path Cost Mode in a specific instance.
open_error_t openapiDot1SIntfEdgePortModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t dot1sEdgePortMode)
OPEN_DOT1S_PORT_ROLE_t
Definition: openapi_dot1s.h:74
open_error_t openapiDot1SMSTInstancePriorityGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint16_t *priority)
Gets Spanning Tree MST Instance priority.
open_error_t openapiDot1SConfigRevisionGet(openapiClientHandle_t *client_handle, uint32_t *dot1sConfigRev)
Gets the Spanning Tree Configuration Revision.
open_error_t openapiDot1sCistBridgFwdDelayGet(openapiClientHandle_t *client_handle, uint32_t *fwdDelay)
Get the MSTP Bridge forward delay for the CIST.
Port state Learning.
Definition: openapi_dot1s.h:67
open_error_t openapiDot1SIntfBPDUFilterModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t dot1sBPDUFilterMode)
Configures Spanning Tree BPDU Filter mode for an interface.
open_error_t openapiDot1SMSTInstanceNextFIdGet(openapiClientHandle_t *client_handle, uint32_t dot1sInstance, uint32_t currFId, uint32_t *nextFId)
Gets Next Forwarding Database Id for the Spanning Tree MST Instance.
open_error_t openapiDot1SPortRestrictedTcnSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t val)
Set the MSTP Administrative Restricted Tcn parameter of a specific port.
OPEN_DOT1S_FORCE_VERSION_t
Definition: openapi_dot1s.h:43
open_error_t openapiDot1sCISTRegionalRootIDGet(openapiClientHandle_t *client_handle, OPEN_DOT1S_BRIDGEID_t *rootId)
Get the CIST Regional Root Identifier.
open_error_t openapiDot1sCISTRegionalRootPathCostGet(openapiClientHandle_t *client_handle, uint32_t *cost)
Get the CIST Regional Root Path Cost.
Port state Manual Forward.
Definition: openapi_dot1s.h:70
open_error_t openapiDot1SIntfBPDUFilterModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *dot1sBPDUFilterMode)
Gets Spanning Tree BPDU Filter mode for an interface.
open_error_t openapiDot1SPortAutoEdgeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *mode)
Gets the MSTP Administrative Auto Edge Port parameter of a specific port.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiDot1SModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t dot1sMode)
Enables/Disables Spanning Tree Operational Mode.
open_error_t openapiDot1SCistExtPortPathCostSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t portCost)
Sets the CIST External Port Path Cost on an interface.
open_error_t openapiDot1SCistPortOperEdgeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the CIST Operational Edge Port parameter of a specific port.
open_error_t openapiDot1sMSTInstanceTopologyChangeCountGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t *count)
Get the Spanning Tree MST count of Topology Changes in a specific instance.
open_error_t openapiDot1sCistRootFwdDelayGet(openapiClientHandle_t *client_handle, uint32_t *fwdDelay)
Get the MSTP root port forward delay for the CIST.
open_error_t openapiDot1SIntfModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *dot1sMode)
Gets Spanning Tree Admin Mode on an interface.
open_error_t openapiDot1SCistExtPortPathCostGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *portCost)
Gets the CIST External Port Path Cost on an interface.
open_error_t openapiDot1SMstiPortLoopInconsistentStateGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the MSTP Instance Loop Inconsistent State on an interface.
open_error_t openapiDot1SMSTInstanceNextGet(openapiClientHandle_t *client_handle, uint32_t currInstance, uint32_t *nextInstance)
Gets Next Spanning Tree MST Instance.
open_error_t openapiDot1sCISTRootFwdDelayGet(openapiClientHandle_t *client_handle, uint32_t *delay)
Get the CIST Bridge Forward Delay.
open_error_t openapiDot1SMstiOperPortPathCostGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t *portCost)
Gets the MSTP operational Port Path Cost in a specific instance.
open_error_t openapiDot1SIntfHelloTimeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *helloTime)
Gets the MSTP Hello time of an interface for the CIST.
IEEE 802.1d Spanning Tree.
Definition: openapi_dot1s.h:45
open_error_t openapiDot1SMSTInstanceNextVLANGet(openapiClientHandle_t *client_handle, uint32_t dot1sInstance, uint32_t currVLANId, uint32_t *nextVLANId)
Gets Next VLAN Id for the Spanning Tree MST Instance.
open_error_t openapiDot1SPortStatsClear(openapiClientHandle_t *client_handle, uint32_t ifNum)
Clears the port stats.
open_error_t openapiDot1SMstiDesignatedCostGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t *dCost)
Get the MSTP Designated Bridge cost in a specific instance for a particular interface.
open_error_t openapiDot1SIntfModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t dot1sMode)
Enables/Disables Spanning Tree Admin Mode on an interface.
open_error_t openapiDot1SIntfGuardModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT1S_PORT_GUARD_t *dot1sGuardMode)
Gets Spanning Tree Guard mode.
open_error_t openapiDot1sCISTBridgeHoldTimeGet(openapiClientHandle_t *client_handle, uint32_t *holdTime)
Get the CIST Bridge Hold Time.
open_error_t openapiDot1sMSTInstanceRootPathCostGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t *cost)
Get the Spanning Tree MST Designated Root Path Cost for a specific instance.
open_error_t openapiDot1SPortStatsMSTPBPDUsReceivedGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for MSTP BPDUs Received on a specific port.
open_error_t openapiDot1SMstiPortPathCostModeGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, OPEN_CONTROL_t *costMode)
Get the MSTP Port Path Cost Mode in a specific instance.
open_error_t openapiDot1SIntfGuardModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT1S_PORT_GUARD_t dot1sGuardMode)
Configures Spanning Tree Guard mode.
open_error_t openapiDot1sBridgeMaxHopSet(openapiClientHandle_t *client_handle, uint32_t maxHopCount)
Set the MSTP max hop count parameter for the device.
open_error_t openapiDot1SMstiPortDesignatedRootIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, open_buffdesc *rootID)
Get the Spanning Tree MST Instance Designated Root Bridge Identifier on a interface.
open_error_t openapiDot1SPortAutoEdgeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t mode)
Set the MSTP Administrative Auto Edge Port parameter of a specific port.
open_error_t openapiDot1SMSTInstanceVLANSet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t vlan, OPEN_ACTION_t action)
Adds/Deletes Spanning Tree MST Instance-VLAN association.
open_error_t openapiDot1SConfigNameGet(openapiClientHandle_t *client_handle, open_buffdesc *dot1sConfigName)
Gets the Spanning Tree Configuration Name.
open_error_t openapiDot1SBPDUGuardModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t dot1sBPDUGuard)
Configures Spanning Tree BPDU Guard Mode.
OPEN_DOT1S_PORT_FWD_STATE_t
Definition: openapi_dot1s.h:64
open_error_t openapiDot1SCistExtPortPathCostModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *costMode)
Gets the CIST External Port Path Cost Mode on an interface.
open_error_t openapiDot1sMSTInstanceTimeSinceTopologyChangeGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t *timeVal)
Get the Spanning Tree MST Time since the last Topology Change for a specific instance.
OPEN_ACTION_t
OPEN uses these enumerators to indicate the interface types.
open_error_t openapiDot1SPortStatsSTPBPDUsSentGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for STP BPDUs Sent on a specific port.
open_error_t openapiDot1sPortNextGet(openapiClientHandle_t *client_handle, uint32_t mstID, uint32_t prevIntIfNum, uint32_t *intIfNum)
Get the next port participating in MSTP associated with the specified MSTP instance ID...
IEEE 802.1w Rapid Spanning Tree.
Definition: openapi_dot1s.h:47
open_error_t openapiDot1SBPDUFilterModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t dot1sBPDUFilter)
Configures Spanning Tree BPDU Filter Mode.
open_error_t openapiDot1SPortRestrictedTcnGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *mode)
Gets the MSTP Administrative Restricted Tcn parameter of a specific port.
open_error_t openapiDot1SPortStatsTransitionsIntoLoopInconsistentStateGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t *loopCount)
Gets the MSTP Statistics for the number of times this interface has transitioned into loop inconsiste...
open_error_t openapiDot1SConfigNameSet(openapiClientHandle_t *client_handle, open_buffdesc *dot1sConfigName)
Configures Spanning Tree Configuration Name.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiDot1SMstiDesignatedBridgeIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, open_buffdesc *bridgeID)
Get the MSTP Designated Bridge Identifier in a specific instance for a particular interface...
open_error_t openapiDot1sMstiPortPathCostGet(openapiClientHandle_t *client_handle, uint32_t mstId, uint32_t ifNum, uint32_t *portPathCost)
Get the MSTP port path cost in a specific instance.
open_error_t openapiDot1sCISTMaxAgeGet(openapiClientHandle_t *client_handle, uint32_t *age)
Get the max age for the CIST.
open_error_t openapiDot1SMSTInstanceFirstFIdGet(openapiClientHandle_t *client_handle, uint32_t dot1sInstance, uint32_t *FId)
Gets First Forwarding Database Id for the Spanning Tree MST Instance.
open_error_t openapiDot1VlanMaxGet(openapiClientHandle_t *client_handle, uint32_t *vlanMax)
Get the maximum number of Spanning Tree VLANs.
open_error_t openapiDot1SMstiDesignatedPortIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, open_buffdesc *portID)
Gets the MSTP Designated Port Identifier in a specific instance for a particular interface.
open_error_t openapiDot1SIntfBPDUFloodModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t dot1sBPDUFloodMode)
Configures Spanning Tree BPDU Flood mode for an interface.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
DOT1S general bridge identifier formed by combining the bridge priority, instance identifier...
open_error_t openapiDot1SPortStatsRSTPBPDUsSentGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for RSTP BPDUs Sent on a specific port.
open_error_t openapiDot1SMSTIntfPortIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, open_buffdesc *portID)
Get the MSTP Port Identifier of a specific port in a specific instance.
open_error_t openapiDot1SForceVersionSet(openapiClientHandle_t *client_handle, OPEN_DOT1S_FORCE_VERSION_t dot1sForceVersion)
Configures Spanning Tree Force Revision.
open_error_t openapiDot1SCistPortRegionalRootIDGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *bridgeID)
Gets the CIST Regional Root Bridge Identifier for a particular interface.
open_error_t openapiDot1SPortUpTimeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *upTime)
Gets the MSTP Up Time of the port.
open_error_t openapiDot1SPortStatsMSTPBPDUsSentGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for MSTP BPDUs Sent on a specific port.
open_error_t openapiDot1sMSTInstanceTopologyChangeStateGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, OPEN_BOOL_t *change)
Get if a toplogy change is in progress for any port assigned to the MST instance. ...
open_error_t openapiDot1sCistBridgeMaxAgeSet(openapiClientHandle_t *client_handle, uint32_t maxAge)
Set the MSTP Bridge Max Age parameter for the CIST.
open_error_t openapiDot1sBridgeMaxHopGet(openapiClientHandle_t *client_handle, uint32_t *count)
Get the Max Hop count for the device.
open_error_t openapiDot1SIntfPortFwdStateGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t dot1sInstance, OPEN_DOT1S_PORT_FWD_STATE_t *dot1sPortFwdState)
Gets Spanning Tree Port Forwarding State.
open_error_t openapiDot1sMstiTimeSinceTopologyChangeGet(openapiClientHandle_t *client_handle, uint32_t mstID, uint32_t *days, uint32_t *hours, uint32_t *minutes, uint32_t *seconds)
Get the MSTP Time since the last Topology Change in an instance.
open_error_t openapiDot1SMSTInstanceSet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstanceId, OPEN_ACTION_t action)
Creates/Deletes Spanning Tree MST Instance.
open_error_t openapiDot1SIntfPortLoopInconsistentStateGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t dot1sInstance, OPEN_BOOL_t *loopInconsistentState)
Configures the Spanning Tree MST Port Administrative Edge Port mode of an interface for the CIST...
open_error_t openapiDot1SForceVersionGet(openapiClientHandle_t *client_handle, OPEN_DOT1S_FORCE_VERSION_t *dot1sForceVersion)
Gets the Spanning Tree Force Revision.
open_error_t openapiDot1sMgmtStrLenGet(openapiClientHandle_t *client_handle, OPEN_DOT1S_MGMT_STR_t strType, uint32_t *strLen)
Gets the Spanning Tree Management string length.
open_error_t openapiDot1SIntfBPDUFloodModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *dot1sBPDUFloodMode)
Gets Spanning Tree BPDU Flood mode for an interface.
open_error_t openapiDot1SPortStatsRSTPBPDUsReceivedGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for RSTP BPDUs Received on a specific port.
open_error_t openapiDot1sTopologyChangePortIDGet(openapiClientHandle_t *client_handle, uint32_t *portId)
Get the port ID that triggered topology change.
open_error_t openapiDot1SMSTInstanceFirstVLANGet(openapiClientHandle_t *client_handle, uint32_t dot1sInstance, uint32_t *VLANId)
Gets First VLAN Id for the Spanning Tree MST Instance.
open_error_t openapiDot1SPortStatsTransitionsOutOfLoopInconsistentStateGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t *loopCount)
Gets the MSTP Statistics for the number of times this interface has transitioned out of loop inconsis...
open_error_t openapiDot1SBPDUGuardModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *dot1sBPDUGuard)
Gets the Spanning Tree BPDU Guard Mode.
Port state Forwarding.
Definition: openapi_dot1s.h:68
open_error_t openapiDot1sMSTInstanceBridgeIdentifierGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, OPEN_DOT1S_BRIDGEID_t *id)
Get the Spanning Tree MST Bridge Identifier for a specific instance.
open_error_t openapiDot1SCistPortPathCostGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *portCost)
Gets the CIST port path cost.
open_error_t openapiDot1SMstiPortPrioritySet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t priority)
Set the MSTP Port Priority in a specific instance.
open_error_t openapiDot1SCistHelloTimeGet(openapiClientHandle_t *client_handle, uint32_t *helloTime)
Gets the MSTP Root Port HelloTime paramter for the CIST.
OPEN_DOT1S_PORT_GUARD_t
Definition: openapi_dot1s.h:52
OPEN_DOT1S_MGMT_STR_t
Definition: openapi_dot1s.h:59
open_error_t openapiDot1SConfigRevisionSet(openapiClientHandle_t *client_handle, uint32_t dot1sConfigRev)
Configures Spanning Tree Configuration Revision.
open_error_t openapiDot1sMSTInstanceRootPortIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t *port)
Get the Spanning Tree MST Root Port ID in a specific instance.
open_error_t openapiDot1SPortStatsSTPBPDUsReceivedGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Gets the MSTP Statistics for STP BPDUs Received on a specific port.
open_error_t openapiDot1sCistBridgeMaxAgeGet(openapiClientHandle_t *client_handle, uint32_t *maxAge)
Get the MSTP Bridge Max Age parameter for the CIST.
open_error_t openapiDot1sCISTHelloTimeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *helloTime)
Get the CIST Hello Time of a specific port.
open_error_t openapiDot1sCistBridgeFwdDelaySet(openapiClientHandle_t *client_handle, uint32_t fwdDelay)
Set the MSTP Bridge forward delay for the CIST.
open_error_t openapiDot1sMSTInstanceDesignatedRootIDGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, OPEN_DOT1S_BRIDGEID_t *rootId)
Get the Spanning Tree MST Designated Root Identifier in a specific instance.
open_error_t openapiDot1SMSTInstanceFirstGet(openapiClientHandle_t *client_handle, uint32_t *instanceId)
Gets First Spanning Tree MST Instance.
Port state Disabled.
Definition: openapi_dot1s.h:69
open_error_t openapiDot1SMstiPortPriorityGet(openapiClientHandle_t *client_handle, uint32_t dot1sMSTInstance, uint32_t ifNum, uint32_t *priority)
Get the MSTP Port Priority in a specific instance.
open_error_t openapiDot1sConfigDigestKeyGet(openapiClientHandle_t *client_handle, open_buffdesc *digestKeyBuf)
Get the MSTP Configuration Digest Key.
Port state Discarding.
Definition: openapi_dot1s.h:66
Port state Not Participating.
Definition: openapi_dot1s.h:71
open_error_t openapiDot1sBridgeTxHoldCountGet(openapiClientHandle_t *client_handle, uint32_t *count)
Get the Tx Hold count for the device.
open_error_t openapiDot1sCistBridgeHelloTimeGet(openapiClientHandle_t *client_handle, uint32_t *helloTime)
Get the MSTP Bridge hello time parameter for the CIST.
open_error_t openapiDot1SIntfBPDUGuardEffectGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
Gets the MSTP BPDU guard effect of an interface for the CIST.