networking_baremetal.openconfig.lacp package¶
Submodules¶
networking_baremetal.openconfig.lacp.lacp module¶
-
class
networking_baremetal.openconfig.lacp.lacp.
LACP
¶ Bases:
object
LACP Top level
LACP configuration and state variable containers
-
NAMESPACE
= 'http://openconfig.net/yang/lacp'¶
-
TAG
= 'lacp'¶
-
property
interfaces
¶
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.lacp.lacp.
LACPInterface
(name: str, operation=<NetconfEditConfigOperation.MERGE: 'merge'>)¶ Bases:
object
Base LACP aggregate interface
-
NAMESPACE
= 'http://openconfig.net/yang/lacp'¶
-
PARENT
= 'interfaces'¶
-
TAG
= 'interface'¶
-
property
config
¶ Configuration data for each LACP aggregate interface
-
property
name
¶ The name of the LACP aggregate interface.
-
property
operation
¶ RFC 6241 - <edit-config> operation attribute
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.lacp.lacp.
LACPInterfaceConfig
(name: str, operation=<NetconfEditConfigOperation.MERGE: 'merge'>, interval=<LACPPeriod.SLOW: 'SLOW'>, lacp_mode=<LACPActivity.ACTIVE: 'ACTIVE'>)¶ Bases:
object
OpenConfig LACP aggregate interface configuration
-
NAMESPACE
= 'http://openconfig.net/yang/lacp'¶
-
PARENT
= 'interface'¶
-
TAG
= 'config'¶
-
property
interval
¶ The period between LACP messages
-
property
lacp_mode
¶ The LACP mode if the aggregate interface
-
property
name
¶ The name of the interface.
-
property
operation
¶ RFC 6241 - <edit-config> operation attribute
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.lacp.lacp.
LACPInterfaces
¶ Bases:
collections.abc.Collection
Top-level grouping for LACP-enabled interfaces
-
NAMESPACE
= 'http://openconfig.net/yang/lacp'¶
-
PARENT
= 'lacp'¶
-
TAG
= 'interfaces'¶
-
add
(name: str)¶ Add interface
- Parameters
name – Interface name
- Type
str
-
property
interfaces
¶ List of interfaces
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
networking_baremetal.openconfig.lacp.types module¶
-
class
networking_baremetal.openconfig.lacp.types.
LACPActivity
(value)¶ Bases:
enum.Enum
Describes the LACP membership type
Active or passive, of the interface in the aggregate. reference “IEEE 802.1AX-2008”
- ACTIVE: Interface is an active member, i.e., will detect and
maintain aggregates
- PASSIVE: Interface is a passive member, i.e., it participates
with an active partner
-
ACTIVE
= 'ACTIVE'¶
-
PASSIVE
= 'PASSIVE'¶