public class LldpTlv extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LldpTlv.Builder
Builder (mutable) used to create a new instances.
|
static class |
LldpTlv.Capability
Capabilities (bitmask enumeration).
|
static class |
LldpTlv.ChassisIdSubType
Chassis ID sub-types.
|
static class |
LldpTlv.PortIdSubType
Port ID sub-types.
|
static class |
LldpTlv.PrivateBuilder
PrivateBuilder (mutable) used to create a new instances.
|
static class |
LldpTlv.Type
Main TLV types.
|
public static LldpTlv chassisIdMacAddr(MacAddress mac)
LldpTlv
of LldpTlv.ChassisIdSubType.MAC_ADDR
.mac
- MAC addresspublic static LldpTlv chassisIdName(LldpTlv.ChassisIdSubType st, String name)
LldpTlv
for one of the following sub-types:
LldpTlv.ChassisIdSubType.INTF_NAME
,
LldpTlv.ChassisIdSubType.INTF_NAME
, LldpTlv.ChassisIdSubType.LOCAL
,
LldpTlv.ChassisIdSubType.CHASSIS_COMP
,
LldpTlv.ChassisIdSubType.INTF_ALIAS
,
LldpTlv.ChassisIdSubType.PORT_COMP
st
- chassis ID sub-typename
- chassis ID string valuepublic static LldpTlv portIdMacAddr(MacAddress mac)
LldpTlv
of LldpTlv.PortIdSubType.MAC_ADDR
.mac
- MAC addresspublic static LldpTlv portIdName(LldpTlv.PortIdSubType st, String name)
LldpTlv
for one of the following sub-types:
LldpTlv.PortIdSubType.INTF_NAME
,
LldpTlv.PortIdSubType.INTF_NAME
, LldpTlv.ChassisIdSubType.LOCAL
,
LldpTlv.PortIdSubType.AGENT_CIRC_ID
,
LldpTlv.PortIdSubType.INTF_ALIAS
,
LldpTlv.PortIdSubType.PORT_COMP
st
- port ID sub-typename
- port ID string valuepublic static LldpTlv ttl(int value)
LldpTlv
.value
- TTL valuepublic LldpTlv.Type type()
public byte[] bytes()
public MacAddress macAddr()
public String name()
public Integer number()
public IpAddress ipAddr()
public LldpTlv.Capability[] supported()
public LldpTlv.Capability[] enabled()
public LldpTlv.ChassisIdSubType chassisIdSubType()
public LldpTlv.PortIdSubType portIdSubType()
Copyright © 2015. All Rights Reserved.