networking_baremetal.openconfig.interfaces package¶
Submodules¶
networking_baremetal.openconfig.interfaces.aggregate module¶
-
class
networking_baremetal.openconfig.interfaces.aggregate.
InterfacesAggregation
¶ Bases:
object
Options for logical interfaces representing aggregates
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces/aggregate'¶
-
PARENT
= 'interface'¶
-
TAG
= 'aggregation'¶
-
property
config
¶
-
property
switched_vlan
¶
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.interfaces.aggregate.
InterfacesAggregationConfig
(operation: str = <NetconfEditConfigOperation.MERGE: 'merge'>)¶ Bases:
object
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces/aggregate'¶
-
PARENT
= 'aggregation'¶
-
TAG
= 'config'¶
-
property
lag_type
¶
-
property
min_links
¶
-
property
operation
¶ RFC 6241 - <edit-config> operation attribute
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
networking_baremetal.openconfig.interfaces.ethernet module¶
-
class
networking_baremetal.openconfig.interfaces.ethernet.
InterfacesEthernet
¶ Bases:
object
Ethernet configuration and state
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces/ethernet'¶
-
PARENT
= 'interface'¶
-
TAG
= 'ethernet'¶
-
property
config
¶ Configuration parameters for interface
-
property
switched_vlan
¶
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.interfaces.ethernet.
InterfacesEthernetConfig
(operation=<NetconfEditConfigOperation.MERGE: 'merge'>)¶ Bases:
object
OpenConfig interface ethernet configuration
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces'¶
-
PARENT
= 'interface'¶
-
TAG
= 'config'¶
-
property
aggregate_id
¶ Logical aggregate interface for interface
-
property
operation
¶ RFC 6241 - <edit-config> operation attribute
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
networking_baremetal.openconfig.interfaces.interfaces module¶
-
class
networking_baremetal.openconfig.interfaces.interfaces.
BaseInterface
(name: str)¶ Bases:
object
Base interface
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces'¶
-
PARENT
= 'interfaces'¶
-
TAG
= 'interface'¶
-
property
config
¶ Configuration parameters for interface
-
property
name
¶ The name of the interface.
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
-
class
networking_baremetal.openconfig.interfaces.interfaces.
InterfaceAggregate
(name: str, operation: str = <NetconfEditConfigOperation.MERGE: 'merge'>)¶ Bases:
networking_baremetal.openconfig.interfaces.interfaces.BaseInterface
-
property
aggregation
¶ Ethernet configuration and state
-
property
operation
¶ RFC 6241 - <edit-config> operation attribute
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
property
-
class
networking_baremetal.openconfig.interfaces.interfaces.
InterfaceConfig
(operation=<NetconfEditConfigOperation.MERGE: 'merge'>, name: Optional[str] = None, description: Optional[str] = None, enabled: Optional[bool] = None, mtu: Optional[int] = None)¶ Bases:
object
OpenConfig interface configuration
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces'¶
-
PARENT
= 'interface'¶
-
TAG
= 'config'¶
-
property
description
¶ A textual description of the interface
-
property
enabled
¶ The configured, desired state of the interface
-
property
mtu
¶ The max transmission unit size in octets
-
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.interfaces.interfaces.
InterfaceEthernet
(name: str)¶ Bases:
networking_baremetal.openconfig.interfaces.interfaces.BaseInterface
-
property
ethernet
¶ Ethernet configuration and state
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-
property
-
class
networking_baremetal.openconfig.interfaces.interfaces.
Interfaces
¶ Bases:
collections.abc.Collection
Group/List of interfaces
-
NAMESPACE
= 'http://openconfig.net/yang/interfaces'¶
-
TAG
= 'interfaces'¶
-
add
(name: str, interface_type: str = 'ethernet')¶ Add interface
- Parameters
name – Interface name
interface_type – Interface type (‘ethernet’, ‘aggregate’, ‘base’)
- Type
str
- Type
str
-
property
interfaces
¶ List of interfaces
-
to_xml_element
()¶ Create XML Element
- Returns
ElementTree Element with SubElements
-