Documentation ¶
Overview ¶
This module describes configuration and operational state data for Link Aggregation Control Protocol (LACP) for managing aggregate interfaces. It works in conjunction with the OpenConfig interfaces and aggregate interfaces models.
Index ¶
- type Lacp
- type LacpActivityType
- type LacpPeriodType
- type LacpSynchronizationType
- type LacpTimeoutType
- type Lacp_Config
- type Lacp_Interfaces
- type Lacp_Interfaces_Interface
- type Lacp_Interfaces_Interface_Config
- type Lacp_Interfaces_Interface_Members
- type Lacp_Interfaces_Interface_Members_Member
- type Lacp_Interfaces_Interface_Members_Member_State
- type Lacp_Interfaces_Interface_Members_Member_State_Counters
- type Lacp_Interfaces_Interface_State
- type Lacp_State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lacp ¶
type Lacp struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Configuration data for LACP. Config Lacp_Config // Operational state data for LACP. State Lacp_State // Enclosing container for the list of LACP-enabled interfaces. Interfaces Lacp_Interfaces }
Lacp Configuration and operational state data for LACP protocol operation on the aggregate interface
func (*Lacp) GetEntityData ¶
func (lacp *Lacp) GetEntityData() *types.CommonEntityData
type LacpActivityType ¶
type LacpActivityType string
LacpActivityType represents interface in the aggregate
const ( // Interface is an active member, i.e., will detect and // maintain aggregates LacpActivityType_ACTIVE LacpActivityType = "ACTIVE" // Interface is a passive member, i.e., it participates // with an active partner LacpActivityType_PASSIVE LacpActivityType = "PASSIVE" )
type LacpPeriodType ¶
type LacpPeriodType string
LacpPeriodType represents LACP messages
const ( // Send LACP packets every second LacpPeriodType_FAST LacpPeriodType = "FAST" // Send LACP packets every 30 seconds LacpPeriodType_SLOW LacpPeriodType = "SLOW" )
type LacpSynchronizationType ¶
type LacpSynchronizationType string
LacpSynchronizationType represents Indicates LACP synchronization state of participant
const ( // Participant is in sync with the system id and key // transmitted LacpSynchronizationType_IN_SYNC LacpSynchronizationType = "IN_SYNC" // Participant is not in sync with the system id and key // transmitted LacpSynchronizationType_OUT_SYNC LacpSynchronizationType = "OUT_SYNC" )
type LacpTimeoutType ¶
type LacpTimeoutType string
LacpTimeoutType represents Type of timeout used, short or long, by LACP participants
const ( // Participant wishes to use long timeouts to detect // status of the aggregate, i.e., will expect less frequent // transmissions. Long timeout is 90 seconds. LacpTimeoutType_LONG LacpTimeoutType = "LONG" // Participant wishes to use short timeouts, i.e., expects // frequent transmissions to aggressively detect status // changes. Short timeout is 3 seconds. LacpTimeoutType_SHORT LacpTimeoutType = "SHORT" )
type Lacp_Config ¶
type Lacp_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Sytem priority used by the node on this LAG interface. Lower value is // higher priority for determining which node is the controlling system. The // type is interface{} with range: 0..65535. SystemPriority interface{} }
Lacp_Config Configuration data for LACP
func (*Lacp_Config) GetEntityData ¶
func (config *Lacp_Config) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces ¶
type Lacp_Interfaces struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // List of aggregate interfaces managed by LACP. The type is slice of // Lacp_Interfaces_Interface. Interface []*Lacp_Interfaces_Interface }
Lacp_Interfaces Enclosing container for the list of LACP-enabled interfaces
func (*Lacp_Interfaces) GetEntityData ¶
func (interfaces *Lacp_Interfaces) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface ¶
type Lacp_Interfaces_Interface struct { EntityData types.CommonEntityData YFilter yfilter.YFilter YListKey string // This attribute is a key. Reference to the list key. The type is string. // Refers to lacp.Lacp_Interfaces_Interface_Config_Name Name interface{} // Configuration data for each LACP aggregate interface. Config Lacp_Interfaces_Interface_Config // Operational state data for each LACP aggregate interface. State Lacp_Interfaces_Interface_State // Enclosing container for the list of members interfaces of the aggregate. // This list is considered operational state only so is labeled config false // and has no config container. Members Lacp_Interfaces_Interface_Members }
Lacp_Interfaces_Interface List of aggregate interfaces managed by LACP
func (*Lacp_Interfaces_Interface) GetEntityData ¶
func (self *Lacp_Interfaces_Interface) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_Config ¶
type Lacp_Interfaces_Interface_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Reference to the interface on which LACP should be configured. The type // of the target interface must be ieee8023adLag. The type is string. Refers // to interfaces.Interfaces_Interface_Name Name interface{} // Set the period between LACP messages -- uses the lacp-period-type // enumeration. The type is LacpPeriodType. The default value is SLOW. Interval interface{} // ACTIVE is to initiate the transmission of LACP packets. PASSIVE is to wait // for peer to initiate the transmission of LACP packets. The type is // LacpActivityType. The default value is ACTIVE. LacpMode interface{} // The MAC address portion of the node's System ID. This is combined with the // system priority to construct the 8-octet system-id. The type is string with // pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}. SystemIdMac interface{} // Sytem priority used by the node on this LAG interface. Lower value is // higher priority for determining which node is the controlling system. The // type is interface{} with range: 0..65535. SystemPriority interface{} }
Lacp_Interfaces_Interface_Config Configuration data for each LACP aggregate interface
func (*Lacp_Interfaces_Interface_Config) GetEntityData ¶
func (config *Lacp_Interfaces_Interface_Config) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_Members ¶
type Lacp_Interfaces_Interface_Members struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // List of member interfaces and their associated status for a LACP-controlled // aggregate interface. Member list is not configurable here -- each // interface indicates items its participation in the LAG. The type is slice // of Lacp_Interfaces_Interface_Members_Member. Member []*Lacp_Interfaces_Interface_Members_Member }
Lacp_Interfaces_Interface_Members Enclosing container for the list of members interfaces of the aggregate. This list is considered operational state only so is labeled config false and has no config container
func (*Lacp_Interfaces_Interface_Members) GetEntityData ¶
func (members *Lacp_Interfaces_Interface_Members) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_Members_Member ¶
type Lacp_Interfaces_Interface_Members_Member struct { EntityData types.CommonEntityData YFilter yfilter.YFilter YListKey string // This attribute is a key. Reference to aggregate member interface. The type // is string. Refers to // lacp.Lacp_Interfaces_Interface_Members_Member_State_Interface Interface interface{} // Operational state data for aggregate members. State Lacp_Interfaces_Interface_Members_Member_State }
Lacp_Interfaces_Interface_Members_Member List of member interfaces and their associated status for a LACP-controlled aggregate interface. Member list is not configurable here -- each interface indicates items its participation in the LAG.
func (*Lacp_Interfaces_Interface_Members_Member) GetEntityData ¶
func (member *Lacp_Interfaces_Interface_Members_Member) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_Members_Member_State ¶
type Lacp_Interfaces_Interface_Members_Member_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Reference to interface member of the LACP aggregate. The type is string. // Refers to interfaces.Interfaces_Interface_Name Interface interface{} // Indicates participant is active or passive. The type is LacpActivityType. Activity interface{} // The timeout type (short or long) used by the participant. The type is // LacpTimeoutType. Timeout interface{} // Indicates whether the participant is in-sync or out-of-sync. The type is // LacpSynchronizationType. Synchronization interface{} // A true value indicates that the participant will allow the link to be used // as part of the aggregate. A false value indicates the link should be used // as an individual link. The type is bool. Aggregatable interface{} // If true, the participant is collecting incoming frames on the link, // otherwise false. The type is bool. Collecting interface{} // When true, the participant is distributing outgoing frames; when false, // distribution is disabled. The type is bool. Distributing interface{} // MAC address that defines the local system ID for the aggregate interface. // The type is string with pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}. SystemId interface{} // Current operational value of the key for the aggregate interface. The type // is interface{} with range: 0..65535. OperKey interface{} // MAC address representing the protocol partner's interface system ID. The // type is string with pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}. PartnerId interface{} // Operational value of the protocol partner's key. The type is interface{} // with range: 0..65535. PartnerKey interface{} // LACP protocol counters. Counters Lacp_Interfaces_Interface_Members_Member_State_Counters }
Lacp_Interfaces_Interface_Members_Member_State Operational state data for aggregate members
func (*Lacp_Interfaces_Interface_Members_Member_State) GetEntityData ¶
func (state *Lacp_Interfaces_Interface_Members_Member_State) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_Members_Member_State_Counters ¶
type Lacp_Interfaces_Interface_Members_Member_State_Counters struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Number of LACPDUs received. The type is interface{} with range: // 0..18446744073709551615. LacpInPkts interface{} // Number of LACPDUs transmitted. The type is interface{} with range: // 0..18446744073709551615. LacpOutPkts interface{} // Number of LACPDU receive packet errors. The type is interface{} with range: // 0..18446744073709551615. LacpRxErrors interface{} // Number of LACPDU transmit packet errors. The type is interface{} with // range: 0..18446744073709551615. LacpTxErrors interface{} // Number of LACPDU unknown packet errors. The type is interface{} with range: // 0..18446744073709551615. LacpUnknownErrors interface{} // Number of LACPDU illegal packet errors. The type is interface{} with range: // 0..18446744073709551615. LacpErrors interface{} }
Lacp_Interfaces_Interface_Members_Member_State_Counters LACP protocol counters
func (*Lacp_Interfaces_Interface_Members_Member_State_Counters) GetEntityData ¶
func (counters *Lacp_Interfaces_Interface_Members_Member_State_Counters) GetEntityData() *types.CommonEntityData
type Lacp_Interfaces_Interface_State ¶
type Lacp_Interfaces_Interface_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Reference to the interface on which LACP should be configured. The type // of the target interface must be ieee8023adLag. The type is string. Refers // to interfaces.Interfaces_Interface_Name Name interface{} // Set the period between LACP messages -- uses the lacp-period-type // enumeration. The type is LacpPeriodType. The default value is SLOW. Interval interface{} // ACTIVE is to initiate the transmission of LACP packets. PASSIVE is to wait // for peer to initiate the transmission of LACP packets. The type is // LacpActivityType. The default value is ACTIVE. LacpMode interface{} // The MAC address portion of the node's System ID. This is combined with the // system priority to construct the 8-octet system-id. The type is string with // pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}. SystemIdMac interface{} // Sytem priority used by the node on this LAG interface. Lower value is // higher priority for determining which node is the controlling system. The // type is interface{} with range: 0..65535. SystemPriority interface{} }
Lacp_Interfaces_Interface_State Operational state data for each LACP aggregate interface
func (*Lacp_Interfaces_Interface_State) GetEntityData ¶
func (state *Lacp_Interfaces_Interface_State) GetEntityData() *types.CommonEntityData
type Lacp_State ¶
type Lacp_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Sytem priority used by the node on this LAG interface. Lower value is // higher priority for determining which node is the controlling system. The // type is interface{} with range: 0..65535. SystemPriority interface{} }
Lacp_State Operational state data for LACP
func (*Lacp_State) GetEntityData ¶
func (state *Lacp_State) GetEntityData() *types.CommonEntityData