lldp_impl¶
Warning
doxygenfile: Cannot find file “eos/lldp_impl.h
Type definitions in lldp_impl¶
-
namespace
eos
-
class
lldp_tlv_type_impl_t
- #include <lldp_impl.h>
An LLDP organizationally defined TLV type.
Public Functions
-
lldp_tlv_type_impl_t
()
-
lldp_tlv_type_impl_t
(uint32_t organization, uint8_t subtype)
-
uint32_t
organization
() const Getter for ‘organization’: IEEE assigned Organizationally Unique Identifier (OUI), 24 bits.
-
void
organization_is
(uint32_t organization) Setter for ‘organization’.
-
uint8_t
subtype
() const Getter for ‘subtype’: Subtype under OUI (managed by org.), 8 bits.
-
void
subtype_is
(uint8_t subtype) Setter for ‘subtype’.
-
bool
operator==
(lldp_tlv_type_impl_t const & other) const
-
bool
operator!=
(lldp_tlv_type_impl_t const & other) const
-
bool
operator<
(lldp_tlv_type_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_tlv_type_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_tlv_type_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
uint32_t
organization_
-
uint8_t
subtype_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_tlv_type_t to the ostream.
-
-
class
lldp_std_tlv_type_impl_t
- #include <lldp_impl.h>
Defines a set of remote TLVs (for which we have a value for).
Public Functions
-
lldp_std_tlv_type_impl_t
()
-
void
chassis_id_is
(bool enabled)
-
void
intf_id_is
(bool enabled)
-
void
intf_description_is
(bool enabled)
-
void
system_capabilities_is
(bool enabled)
-
void
management_address_is
(bool enabled)
-
void
default_vlan_is
(bool enabled)
-
void
management_vlan_is
(bool enabled)
-
void
max_frame_size_is
(bool enabled)
-
void
lacp_is
(bool enabled)
-
void
phy_is
(bool enabled)
-
bool
chassis_id
() const
-
bool
intf_id
() const
-
bool
intf_description
() const
-
bool
system_capabilities
() const
-
bool
management_address
() const
-
bool
default_vlan
() const
-
bool
management_vlan
() const
-
bool
max_frame_size
() const
-
bool
lacp
() const
-
bool
phy
() const
-
uint32_t
hash
() const The hash function for type lldp_std_tlv_type_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_std_tlv_type_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
lldp_std_tlv_type_bit_t
bitset_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_std_tlv_type_t to the ostream.
-
-
class
lldp_syscap_impl_t
- #include <lldp_impl.h>
Defines a set of remote system capabilities.
Public Functions
-
lldp_syscap_impl_t
()
-
lldp_syscap_impl_t
(lldp_syscap_bits_t bitset)
-
bool
other
() const
-
bool
repeater
() const
-
bool
bridge
() const
-
bool
vlan_ap
() const
-
bool
router
() const
-
bool
telephone
() const
-
bool
docsis
() const
-
bool
station
() const
-
uint32_t
hash
() const The hash function for type lldp_syscap_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_syscap_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
lldp_syscap_bits_t
bitset_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_syscap_t to the ostream.
-
-
class
lldp_management_address_impl_t
- #include <lldp_impl.h>
Management information of the switch across the link.
Public Functions
-
lldp_management_address_impl_t
()
-
lldp_management_address_impl_t
(uint32_t address_family, std::string address, uint32_t snmp_ifindex, std::string oid)
-
uint32_t
address_family
() const Getter for ‘address_family’: Type of address encoded in address field (see IANA Address Family Numbers MIB).
-
std::string
address
() const Getter for ‘address’: The address, max size 31 octets (ipv4 or ipv6 most likely).
-
uint32_t
snmp_ifindex
() const Getter for ‘snmp_ifindex’: The SNMP interface index of the management interface.
-
std::string
oid
() const Getter for ‘oid’: The SNMP OID that describes the hardware the management interface is part of.
-
bool
operator<
(lldp_management_address_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_management_address_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_management_address_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
uint32_t
address_family_
-
std::string
address_
-
uint32_t
snmp_ifindex_
-
std::string
oid_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_management_address_t to the ostream.
-
-
class
lldp_lacp_impl_t
- #include <lldp_impl.h>
LACP information from the peer.
Public Functions
-
lldp_lacp_impl_t
()
-
lldp_lacp_impl_t
(bool capable, bool enabled, uint32_t id, bool valid)
-
bool
capable
() const Getter for ‘capable’: if port can become a member of a port-channel.
-
bool
enabled
() const Getter for ‘enabled’: if port is a member of a port-channel.
-
uint32_t
id
() const Getter for ‘id’: which port-channel number this interface is part of, (if enabled=true).
-
bool
valid
() const Getter for ‘valid’: true if such tlv was received, else other fields are bogus.
-
bool
operator!
() const invalid lacp_t returned if no such tlv received.
-
uint32_t
hash
() const The hash function for type lldp_lacp_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_lacp_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
bool
capable_
-
bool
enabled_
-
uint32_t
id_
-
bool
valid_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_lacp_t to the ostream.
-
-
class
lldp_phy_impl_t
- #include <lldp_impl.h>
PHY information from the peer (related to speed auto-negotiation).
Public Functions
-
lldp_phy_impl_t
()
-
lldp_phy_impl_t
(bool autonegSupported, bool autonegEnabled, uint16_t autonegCapabilitiesBm, bool valid)
-
bool
autonegSupported
() const Getter for ‘autonegSupported’: if auto-negotiation supported.
-
bool
autonegEnabled
() const Getter for ‘autonegEnabled’: if auto-negatiation enabled.
-
uint16_t
autonegCapabilitiesBm
() const Getter for ‘autonegCapabilitiesBm’: capabilities bitmask.
-
bool
valid
() const Getter for ‘valid’: if phy-info tlv received from remote.
-
uint32_t
hash
() const The hash function for type lldp_phy_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_phy_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
bool
autonegSupported_
-
bool
autonegEnabled_
-
uint16_t
autonegCapabilitiesBm_
-
bool
valid_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_phy_t to the ostream.
-
-
class
lldp_chassis_id_impl_t
- #include <lldp_impl.h>
The chassis name, as an encoding plus payload.
Public Functions
-
lldp_chassis_id_impl_t
()
-
lldp_chassis_id_impl_t
(lldp_chassis_id_encoding_t encoding, std::string value)
-
lldp_chassis_id_encoding_t
encoding
() const
-
std::string
value
() const
-
std::string
repr
() const String representation of a chassisId.
-
bool
operator==
(lldp_chassis_id_impl_t const & other) const
-
bool
operator!=
(lldp_chassis_id_impl_t const & other) const
-
bool
operator<
(lldp_chassis_id_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_chassis_id_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_chassis_id_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
lldp_chassis_id_encoding_t
encoding_
-
std::string
value_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_chassis_id_t to the ostream.
-
-
class
lldp_intf_id_impl_t
- #include <lldp_impl.h>
The interface name, as an encoding plus payload.
Public Functions
-
lldp_intf_id_impl_t
()
-
lldp_intf_id_impl_t
(lldp_intf_id_encoding_t encoding, std::string value)
-
lldp_intf_id_encoding_t
encoding
() const
-
std::string
value
() const
-
std::string
repr
() const String representation of a chassisId.
-
bool
operator==
(lldp_intf_id_impl_t const & other) const
-
bool
operator!=
(lldp_intf_id_impl_t const & other) const
-
bool
operator<
(lldp_intf_id_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_intf_id_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_intf_id_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Private Members
-
lldp_intf_id_encoding_t
encoding_
-
std::string
value_
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_intf_id_t to the ostream.
-
-
class
lldp_remote_system_impl_t
- #include <lldp_impl.h>
Identifies a remote system as seen across an LLDP interface.
Public Functions
-
lldp_remote_system_impl_t
()
-
lldp_remote_system_impl_t
(lldp_chassis_id_t chassis, lldp_intf_id_t port)
-
lldp_chassis_id_t
chassis
() const Getter for ‘chassis’: The chassis-id of the remote system.
-
void
chassis_is
(lldp_chassis_id_t chassis) Setter for ‘chassis’.
-
lldp_intf_id_t
port
() const Getter for ‘port’: The port-id of the remote system.
-
void
port_is
(lldp_intf_id_t port) Setter for ‘port’.
-
std::string
repr
() const String representation of a chassisId.
-
bool
operator==
(lldp_remote_system_impl_t const & other) const
-
bool
operator!=
(lldp_remote_system_impl_t const & other) const
-
bool
operator<
(lldp_remote_system_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_remote_system_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_remote_system_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_remote_system_t to the ostream.
-
-
class
lldp_neighbor_impl_t
- #include <lldp_impl.h>
Identifies a remote system seen from the local switch.
Public Functions
-
lldp_neighbor_impl_t
()
-
lldp_neighbor_impl_t
(intf_id_t intf)
-
lldp_neighbor_impl_t
(intf_id_t intf, lldp_remote_system_t remote_system)
-
intf_id_t
intf
() const Getter for ‘intf’: The local interface that sees this neighbor.
-
void
intf_is
(intf_id_t intf) Setter for ‘intf’.
-
lldp_remote_system_t
remote_system
() const Getter for ‘remote_system’: The id of the remote system (an interface can see more than one).
-
void
remote_system_is
(lldp_remote_system_t remote_system) Setter for ‘remote_system’.
-
std::string
repr
() const String representation of a chassisId.
-
bool
operator==
(lldp_neighbor_impl_t const & other) const
-
bool
operator!=
(lldp_neighbor_impl_t const & other) const
-
bool
operator<
(lldp_neighbor_impl_t const & other) const
-
uint32_t
hash
() const The hash function for type lldp_neighbor_t.
-
void
mix_me
(hash_mix & h) const The hash mix function for type lldp_neighbor_t.
-
std::string
to_string
() const Returns a string representation of the current object’s values.
Friends
-
friend std::ostream &
operator<<
A utility stream operator that adds a string representation of lldp_neighbor_t to the ostream.
-
-
class