Class: Pio::Lldp::Frame

Inherits:
BinData::Record
  • Object
show all
Extended by:
Type::EthernetHeader
Defined in:
lib/pio/lldp/frame.rb

Overview

LLDP frame

Instance Method Summary collapse

Methods included from Type::EthernetHeader

ethernet_header

Instance Method Details

#dpidObject



27
28
29
# File 'lib/pio/lldp/frame.rb', line 27

def dpid
  chassis_id.to_i
end

#management_addressObject



47
48
49
# File 'lib/pio/lldp/frame.rb', line 47

def management_address
  get_tlv_field 8, 'management_address'
end

#organizationally_specificObject



51
52
53
# File 'lib/pio/lldp/frame.rb', line 51

def organizationally_specific
  get_tlv 127
end

#port_descriptionObject



31
32
33
# File 'lib/pio/lldp/frame.rb', line 31

def port_description
  get_tlv_field 4, 'port_description'
end

#system_capabilitiesObject



43
44
45
# File 'lib/pio/lldp/frame.rb', line 43

def system_capabilities
  get_tlv 7
end

#system_descriptionObject



39
40
41
# File 'lib/pio/lldp/frame.rb', line 39

def system_description
  get_tlv_field 6, 'system_description'
end

#system_nameObject



35
36
37
# File 'lib/pio/lldp/frame.rb', line 35

def system_name
  get_tlv_field 5, 'system_name'
end