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)

Bases: object

NAMESPACE = 'http://openconfig.net/yang/interfaces/aggregate'
PARENT = 'aggregation'
TAG = 'config'
property lag_type
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)

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)

Bases: 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

class networking_baremetal.openconfig.interfaces.interfaces.InterfaceConfig(operation=NetconfEditConfigOperation.MERGE, name: str | None = None, description: str | None = None, enabled: bool | None = None, mtu: int | None = 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: BaseInterface

property ethernet

Ethernet configuration and state

to_xml_element()

Create XML Element

Returns:

ElementTree Element with SubElements

class networking_baremetal.openconfig.interfaces.interfaces.Interfaces

Bases: 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

networking_baremetal.openconfig.interfaces.types module

class networking_baremetal.openconfig.interfaces.types.AggregationType(value)

Bases: Enum

An enumeration.

LACP = 'LACP'
STATIC = 'SATIC'

Module contents