private static final String SYSTEMNAMEID = "SystemNameID";
private static final String PORTID = "PortId";
private static final String TTL = "TTL";
+ private static final String SYSTEMDESC = "SystemDesc";
+ private static final String PORTDESC = "PortDesc";
+ private static final String SYSTEMCAPABILITIES = "SystemCapabilities";
+ private static final String MANAGEMENTADDRESS = "ManagementAddress";
private static final int LLDP_DEFAULT_TLVS = 3;
private static final LLDPTLV EMPTY_TLV = new LLDPTLV().setLength((short) 0).setType((byte) 0);
@SuppressFBWarnings("MS_PKGPROTECT")
return LLDPTLV.TLVType.TTL.getValue();
case SYSTEMNAMEID:
return LLDPTLV.TLVType.SystemName.getValue();
+ case SYSTEMDESC:
+ return LLDPTLV.TLVType.SystemDesc.getValue();
+ case PORTDESC:
+ return LLDPTLV.TLVType.PortDesc.getValue();
+ case SYSTEMCAPABILITIES:
+ return LLDPTLV.TLVType.SystemCapabilities.getValue();
+ case MANAGEMENTADDRESS:
+ return LLDPTLV.TLVType.ManagementAddress.getValue();
default:
return LLDPTLV.TLVType.Unknown.getValue();
}
return this;
}
+ /**
+ * Return the SystemDesc TLV.
+ */
+ public LLDPTLV getSystemDesc() {
+ return getTLV(SYSTEMDESC);
+ }
+
+ public LLDP setSystemDesc(final LLDPTLV systemDesc) {
+ setTLV(SYSTEMDESC, systemDesc);
+ return this;
+ }
+
+ /**
+ * Return the PortDesc TLV.
+ */
+ public LLDPTLV getPortDesc() {
+ return getTLV(PORTDESC);
+ }
+
+ public LLDP setPortDesc(final LLDPTLV portDesc) {
+ setTLV(PORTDESC, portDesc);
+ return this;
+ }
+
+ /**
+ * Return the SystemCapabilities TLV.
+ */
+ public LLDPTLV getSystemCapabilities() {
+ return getTLV(SYSTEMCAPABILITIES);
+ }
+
+ public LLDP setSystemCapabilities(final LLDPTLV systemCapabilities) {
+ setTLV(SYSTEMCAPABILITIES, systemCapabilities);
+ return this;
+ }
+
+ /**
+ * Return the ManagementAddress TLV.
+ */
+ public LLDPTLV getManagementAddress() {
+ return getTLV(MANAGEMENTADDRESS);
+ }
+
+ public LLDP setManagementAddress(final LLDPTLV managementAddress) {
+ setTLV(MANAGEMENTADDRESS, managementAddress);
+ return this;
+ }
+
/**
* Returns the optionalTLVList.
*/
return len / NetUtils.NUM_BITS_IN_A_BYTE;
}
}
+
public enum TLVType {
Unknown((byte) 0), ChassisID((byte) 1), PortID((byte) 2), TTL((byte) 3), PortDesc(
- (byte) 4), SystemName((byte) 5), SystemDesc((byte) 6), Custom(
- (byte) 127);
+ (byte) 4), SystemName((byte) 5), SystemDesc((byte) 6), SystemCapabilities((byte) 7),
+ ManagementAddress((byte) 8), Custom((byte) 127);
private final byte value;
return new CustomTLVKey(BitBufferHelper.getInt(LLDPTLV.OFOUI), LLDPTLV.CUSTOM_TLV_SUB_TYPE_CUSTOM_SEC[0]);
}
}
+