Link layer discovery protocol.
Version: 2021-01-07
module huawei-lldp { yang-version 1; namespace "urn:huawei:yang:huawei-lldp"; prefix lldp; import huawei-extension { prefix ext; } import huawei-ifm { prefix ifm; } import huawei-pub-type { prefix pub-type; } import ietf-inet-types { prefix inet; } import ietf-yang-types { prefix yang; } import huawei-ip { prefix ip; } import huawei-ethernet { prefix ethernet; } import huawei-ifm-trunk { prefix ifm-trunk; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Link layer discovery protocol."; revision "2021-01-07" { description "Change the position of the when condition under node sub-interface-lldp."; reference "Huawei private."; } revision "2020-10-10" { description "Add new node sub-interface-lldp."; reference "Huawei private."; } revision "2020-04-28" { description "Add when condition."; reference "Huawei private."; } revision "2020-04-27" { description "Change leaf node type."; reference "Huawei private."; } revision "2020-04-26" { description "Add new node mdn-status."; reference "Huawei private."; } revision "2020-04-16" { description "Add new node."; reference "Huawei private."; } revision "2020-03-13" { description "Modify description."; reference "Huawei private."; } revision "2020-02-27" { description "LLDP module YANG file."; reference "Huawei private."; } revision "2019-04-23" { description "Initial revision."; reference "Huawei private."; } ext:task-name "lldp"; typedef man-addr-if-sub-type { type enumeration { enum "other" { value 0; description "The if type of management address is other."; } enum "unknown" { value 1; description "The if type of management address is unknown."; } enum "if-index" { value 2; description "The if type of management address is if-index."; } enum "system-port-number" { value 3; description "The if type of management address is system-port-number."; } } description "The if type of management address."; } typedef dot3-mau-type { type enumeration { enum "dot3-mau-type-1000-base-sxhd" { value 25; description "The dot3 mau type is dot3-mau-type-1000-base-sxhd."; } enum "dot3-mau-type-1000-base-sxfd" { value 26; description "The dot3 mau type is dot3-mau-type-1000-base-sxfd."; } enum "dot3-mau-type-1000-base-cxhd" { value 27; description "The dot3 mau type is dot3-mau-type-1000-base-cxhd."; } enum "dot3-mau-type-1000-base-cxfd" { value 28; description "The dot3 mau type is dot3-mau-type-1000-base-cxfd."; } enum "dot3-mau-type-1000-base-thd" { value 29; description "The dot3 mau type is dot3-mau-type-1000-base-thd."; } enum "dot3-mau-type-1000-base-tfd" { value 30; description "The dot3 mau type is dot3-mau-type-1000-base-tfd."; } enum "dot3-mau-type-10gig-base-x" { value 31; description "The dot3 mau type is dot3-mau-type-10gig-base-x."; } enum "dot3-mau-type-10gig-base-lx4" { value 32; description "The dot3 mau type is dot3-mau-type-10gig-base-lx4."; } enum "dot3-mau-type-10gig-base-r" { value 33; description "The dot3 mau type is dot3-mau-type-10gig-base-r."; } enum "dot3-mau-type-10gig-base-er" { value 34; description "The dot3 mau type is dot3-mau-type-10gig-base-er."; } enum "dot3-mau-type-10gig-base-lr" { value 35; description "The dot3 mau type is dot3-mau-type-10gig-base-lr."; } enum "dot3-mau-type-10gig-base-sr" { value 36; description "The dot3 mau type is dot3-mau-type-10gig-base-sr."; } enum "dot3-mau-type-10gig-base-w" { value 37; description "The dot3 mau type is dot3-mau-type-10gig-base-w."; } enum "dot3-mau-type-10gig-base-ew" { value 38; description "The dot3 mau type is dot3-mau-type-10gig-base-ew."; } enum "dot3-mau-type-10gig-base-lw" { value 39; description "The dot3 mau type is dot3-mau-type-10gig-base-lw."; } enum "dot3-mau-type-10gig-base-sw" { value 40; description "The dot3 mau type is dot3-mau-type-10gig-base-sw."; } enum "unknown" { value 0; description "The dot3 mau type is other."; } enum "dot3-mau-type-aui" { value 1; description "The dot3 mau type is dot3-mau-type-aui."; } enum "dot3-mau-type-10-base-5" { value 2; description "The dot3 mau type is dot3-mau-type-10-base-5."; } enum "dot3-mau-type-foirl" { value 3; description "The dot3 mau type is dot3-mau-type-foirl."; } enum "dot3-mau-type-10-base-2" { value 4; description "The dot3 mau type is dot3-mau-type-10-base-2."; } enum "dot3-mau-type-10-base-t" { value 5; description "The dot3 mau type is dot3-mau-type-10-base-t."; } enum "dot3-mau-type-10-base-fp" { value 6; description "The dot3 mau type is dot3-mau-type-10-base-fp."; } enum "dot3-mau-type-10-base-fb" { value 7; description "The dot3 mau type is dot3-mau-type-10-base-fb."; } enum "dot3-mau-type-10-base-fl" { value 8; description "The dot3 mau type is dot3-mau-type-10-base-fl."; } enum "dot3-mau-type-10-base-36" { value 9; description "The dot3 mau type is dot3-mau-type-10-base-36."; } enum "dot3-mau-type-10-base-thd" { value 10; description "The dot3 mau type is dot3-mau-type-10-base-thd."; } enum "dot3-mau-type-10-base-tfd" { value 11; description "The dot3 mau type is dot3-mau-type-10-base-tfd."; } enum "dot3-mau-type-10-base-flhd" { value 12; description "The dot3 mau type is dot3-mau-type-10-base-flhd."; } enum "dot3-mau-type-10-base-flfd" { value 13; description "The dot3 mau type is dot3-mau-type-10-base-flfd."; } enum "dot3-mau-type-100-base-t4" { value 14; description "The dot3 mau type is dot3-mau-type-100-base-t4."; } enum "dot3-mau-type-100-base-txhd" { value 15; description "The dot3 mau type is dot3-mau-type-100-base-txhd."; } enum "dot3-mau-type-100-base-txfd" { value 16; description "The dot3 mau type is dot3-mau-type-100-base-txfd."; } enum "dot3-mau-type-100-base-fxhd" { value 17; description "The dot3 mau type is dot3-mau-type-100-base-fxhd."; } enum "dot3-mau-type-100-base-fxfd" { value 18; description "The dot3 mau type is dot3-mau-type-100-base-fxfd."; } enum "dot3-mau-type-100-base-t2hd" { value 19; description "The dot3 mau type is dot3-mau-type-100-base-t2hd."; } enum "dot3-mau-type-100-base-t2fd" { value 20; description "The dot3 mau type is dot3-mau-type-100-base-t2fd."; } enum "dot3-mau-type-1000-base-xhd" { value 21; description "The dot3 mau type is dot3-mau-type-1000-base-xhd."; } enum "dot3-mau-type-1000-base-xfd" { value 22; description "The dot3 mau type is dot3-mau-type-1000-base-xfd."; } enum "dot3-mau-type-1000-base-lxhd" { value 23; description "The dot3 mau type is dot3-mau-type-1000-base-lxhd."; } enum "dot3-mau-type-1000-base-lxfd" { value 24; description "The dot3 mau type is dot3-mau-type-1000-base-lxfd."; } enum "dot3-mau-type-40gig-base-kr4" { value 70; description "The dot3 mau type is dot3-mau-type-40gig-base-kr4."; } enum "dot3-mau-type-40gig-base-cr4" { value 71; description "The dot3 mau type is dot3-mau-type-40gig-base-cr4."; } enum "dot3-mau-type-40gig-base-sr4" { value 72; description "The dot3 mau type is dot3-mau-type-40gig-base-sr4."; } enum "dot3-mau-type-40gig-base-fr" { value 73; description "The dot3 mau type is dot3-mau-type-40gig-base-fr."; } enum "dot3-mau-type-40gig-base-lr4" { value 74; description "The dot3 mau type is dot3-mau-type-40gig-base-lr4."; } enum "dot3-mau-type-100gig-base-cr10" { value 75; description "The dot3 mau type is dot3-mau-type-100gig-base-cr10."; } enum "dot3-mau-type-100gig-base-sr10" { value 76; description "The dot3 mau type is dot3-mau-type-100gig-base-sr10."; } enum "dot3-mau-type-100gig-base-lr4" { value 77; description "The dot3 mau type is dot3-mau-type-100gig-base-lr4."; } enum "dot3-mau-type-100gig-base-er4" { value 78; description "The dot3 mau type is dot3-mau-type-100gig-base-er4."; } } description "Dot3 mau type."; } typedef admin-status { type enumeration { enum "tx-only" { value 1; description "Administrative status is tx only."; } enum "rx-only" { value 2; description "Administrative status is rx only."; } enum "tx-rx" { value 3; description "Administrative status is tx and rx."; } enum "disabled" { value 4; description "Administrative status is disabled."; } } description "Administrative status."; } typedef port-mode { type enumeration { enum "normal-mode" { value 0; description "Normal mode."; } enum "vlan-mode" { value 1; description "VLAN mode."; } } description "Port mode."; } typedef chassis-id-sub-type { type enumeration { enum "other" { value 0; description "Other extended retention."; } enum "chassis-component" { value 1; description "Chassis component."; } enum "interface-alias" { value 2; description "Interface alias."; } enum "port-component" { value 3; description "Interface component."; } enum "mac-address" { value 4; description "MAC address."; } enum "network-address" { value 5; description "Network address."; } enum "interface-name" { value 6; description "Interface name."; } enum "local" { value 7; description "Local name."; } } description "Chassis ID sub type."; } typedef management-address-type { type enumeration { enum "other" { value 0; description "The type of management address is other."; } enum "ipv4" { value 1; description "The type of management address is IPv4."; } enum "ipv6" { value 2; description "The type of management address is IPv6."; } enum "nsap" { value 3; description "The type of management address is NSAP."; } enum "hdlc" { value 4; description "The type of management address is HDLC."; } enum "bbn1822" { value 5; description "The type of management address is BBN1822."; } enum "mac" { value 6; description "The type of management address is MAC."; } enum "e163" { value 7; description "The type of management address is E163."; } enum "e164" { value 8; description "The type of management address is E164."; } enum "f69" { value 9; description "The type of management address is F69."; } enum "x121" { value 10; description "The type of management address is X121."; } enum "ipx" { value 11; description "The type of management address is IPX."; } enum "apple-talk" { value 12; description "The type of management address is APPLE-TALK."; } enum "decnet-iv" { value 13; description "The type of management address is DECNET-IV."; } enum "banyan-vines" { value 14; description "The type of management address is BANYAN-VINES."; } enum "e164-with-nsap" { value 15; description "The type of management address is E164-with-NSAP."; } enum "dns" { value 16; description "The type of management address is DNS."; } enum "distinguished-name" { value 17; description "The type of management address is distinguished-name."; } enum "as-number" { value 18; description "The type of management address is AS-NUMBER."; } enum "xtp-over-ipv4" { value 19; description "The type of management address is XTP-over-IPv4."; } enum "xtp-over-ipv6" { value 20; description "The type of management address is XTP-over-IPv6."; } enum "xtp-native-mode-xtp" { value 21; description "The type of management address is XTP-native-mode-XTP."; } enum "fibre-channel-wwpn" { value 22; description "The type of management address is fibre-channel-WWPN."; } enum "fibre-channel-wwn" { value 23; description "The type of management address is fibre-channel-WWN."; } enum "gwid" { value 24; description "The type of management address is GWID."; } } description "Management address type."; } typedef port-id-sub-type { type enumeration { enum "other" { value 0; description "The Port id sub type is other."; } enum "interface-alias" { value 1; description "The Port id sub type is interface-alias."; } enum "port-component" { value 2; description "The Port id sub type is port-component."; } enum "mac-address" { value 3; description "The Port id sub type is mac-address."; } enum "network-address" { value 4; description "The Port id sub type is network-address."; } enum "interface-name" { value 5; description "The Port id sub type is interface-name."; } enum "agent-circuit-id" { value 6; description "The Port id sub type is agent-circuit-id."; } enum "local" { value 7; description "The Port id sub type is local."; } } description "Port id sub type."; } typedef global-status { type enumeration { enum "enabled" { value 1; description "The global state is enabled."; } enum "disabled" { value 0; description "The global state is disabled."; } } description "Global status."; } typedef support-status { type enumeration { enum "yes" { value 1; description "The supoort state is yes."; } enum "no" { value 0; description "The supoort state is no."; } } description "Support status."; } typedef enable-status { type enumeration { enum "yes" { value 1; description "Yes."; } enum "no" { value 0; description "No."; } } description "Enable status."; } typedef mdn-global-status { type enumeration { enum "rx-only" { value 2; description "MDN status is rx-only."; } enum "disabled" { value 4; description "MDN status is disabled."; } } description "MDN global status."; } typedef system-capabilities-type { type enumeration { enum "other" { value 0; description "The system has capabilities other than those listed below."; } enum "repeater" { value 1; description "The system has repeater capability."; } enum "bridge" { value 2; description "The system has bridge capability."; } enum "wlan-access-point" { value 3; description "The system has WLAN access point capability."; } enum "router" { value 4; description "The system has router capability."; } enum "telephone" { value 5; description "The system has telephone capability."; } enum "docsis-cable-device" { value 6; description "The system has DOCSIS Cable Device capability."; } enum "station-only" { value 7; description "The system has only station capability and nothing else."; } } description "System capabilities type."; } typedef med-capabilities { type enumeration { enum "capabilities" { value 0; description "Enable the device to send the MED Capability TLV."; } enum "network-policy" { value 1; description "Enable the device to send the MED Network Policy TLV."; } enum "location" { value 2; description "Enable the device to send the MED Location Identification TLV."; } enum "extended-power-via-pse" { value 3; description "Enable the device to send the MED Extended Power via MDI-PSE TLV."; } enum "extended-power-via-pd" { value 4; description "Enable the device to send the MED Extended Power via MDI-PD TLV."; } enum "inventory" { value 5; description "Enable the device to send the MED Inventory TLV."; } enum "reserved" { value 6; description "Reserved."; } } description "LLDP-MED capabilities type."; } typedef med-device-type { type enumeration { enum "type-not-defined" { value 0; description "Type Not Defined."; } enum "endpoint-class-1" { value 1; description "Endpoint Class I."; } enum "endpoint-class-2" { value 2; description "Endpoint Class II."; } enum "endpoint-class-3" { value 3; description "Endpoint Class III."; } enum "network-connectivity" { value 4; description "Network Connectivity."; } enum "reserved" { value 5; description "Reserved."; } } description "LLDP-MED Device Type."; } typedef med-net-application-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "voice" { value 1; description "Voice."; } enum "voice-signaling" { value 2; description "Voice Signaling."; } enum "guest-voice" { value 3; description "Guest Voice."; } enum "guest-voice-signaling" { value 4; description "Guest Voice Signaling."; } enum "softphone-voice" { value 5; description "Softphone Voice."; } enum "video-conferencing" { value 6; description "Video Conferencing."; } enum "streaming-video" { value 7; description "Streaming Video."; } enum "video-signaling" { value 8; description "Video Signaling."; } } description "LLDP-MED network-policy Application Type."; } typedef med-net-unknown-policy-type { type enumeration { enum "defined" { value 0; description "Defined Policy."; } enum "unknown" { value 1; description "Unknown Policy."; } } description "LLDP-MED network-policy Unknown Policy Flag."; } typedef med-power-type { type enumeration { enum "pse" { value 0; description "PSE Device."; } enum "pd" { value 1; description "PD Device."; } enum "reserved" { value 2; description "Reserved."; } } description "Power type of the MED Extended Power-via-MDI TLV."; } typedef power-pse-source-type { type enumeration { enum "unknown" { value 0; description "Unknown."; } enum "primary" { value 1; description "Primary Power Source."; } enum "backup" { value 2; description "Backup Power Source."; } enum "reserved" { value 3; description "Reserved."; } } description "Type of the PSE power supply source."; } typedef med-power-pd-source-type { type enumeration { enum "unknown" { value 0; description "Unknown."; } enum "pse" { value 1; description "PSE."; } enum "local" { value 2; description "Local."; } enum "pse-and-local" { value 3; description "PSE and Local."; } } description "PD power supply source type of the MED Extended Power-via-MDI TLV."; } typedef power-priority-type { type enumeration { enum "unknown" { value 0; description "Unknown."; } enum "critical" { value 1; description "Critical."; } enum "high" { value 2; description "High."; } enum "low" { value 3; description "Low."; } enum "reserved" { value 4; description "Reserved."; } } description "Power priority."; } typedef dot3-power-format-type { type enumeration { enum "first-802.1ab-then-auto" { value 0; description "First packet is sent in 802.1ab mode, and subsequent packets are sent in adaptive mode."; } enum "802.1ab" { value 1; description "The 802.1ab mode."; } enum "802.3at" { value 2; description "The 802.3at mode."; } enum "802.3bt-draft" { value 3; description "The 802.3bt draft mode."; } enum "802.3bt-2018standard" { value 4; description "The 802.3bt 2018 standard mode."; } } description "Mode of IEEE 802.3 Power Via MDI TLV."; } typedef dot3-power-class-type { type enumeration { enum "pd" { value 0; description "Powered device."; } enum "pse" { value 1; description "Power sourcing equipment."; } } description "Power supply type of the Power Via MDI TLV."; } typedef dot3-pairs-control-type { type enumeration { enum "not-controlled" { value 0; description "Pair selection cannot be controlled."; } enum "controlled" { value 1; description "Pair selection can be controlled."; } } description "Whether pair selection can be controlled."; } typedef pse-power-pair-type { type enumeration { enum "signal" { value 1; description "Only the signal pairs are in use."; } enum "spare" { value 2; description "Only the spare pairs are in use."; } enum "unknown" { value 255; description "Unknown."; } } description "PSE power pairs that are in use."; } typedef local-pse-power-class-type { type enumeration { enum "class0" { value 0; description "Class 0."; } enum "class1" { value 1; description "Class 1."; } enum "class2" { value 2; description "Class 2."; } enum "class3" { value 3; description "Class 3."; } enum "class4" { value 4; description "Class 4."; } enum "class5" { value 5; description "Class 5."; } enum "class6" { value 6; description "Class 6."; } enum "class7" { value 7; description "Class 7."; } enum "class8" { value 8; description "Class 8."; } enum "unknown" { value 255; description "Unknown."; } } description "Local PSE power class."; } typedef power-dot3at-type { type enumeration { enum "type-2-pse" { value 0; description "Type 2 PSE."; } enum "type-2-pd" { value 1; description "Type 2 PD."; } enum "type-1-pse" { value 2; description "Type 1 PSE."; } enum "type-1-pd" { value 3; description "Type 1 PD."; } } description "802.3at power type."; } typedef remote-pse-power-class-type { type enumeration { enum "class0" { value 0; description "Class 0 PD."; } enum "class1" { value 1; description "Class 1 PD."; } enum "class2" { value 2; description "Class 2 PD."; } enum "class3" { value 3; description "Class 3 PD."; } enum "class4" { value 4; description "Class 4 PD."; } enum "class4-and-above" { value 99; description "Class 4 and above PD."; } enum "unknown" { value 255; description "Unknown."; } } description "Remote PSE power class."; } typedef dot3bt-draft-power-class-type { type enumeration { enum "class0" { value 0; description "Class 0."; } enum "class1" { value 1; description "Class 1."; } enum "class2" { value 2; description "Class 2."; } enum "class3" { value 3; description "Class 3."; } enum "class4" { value 4; description "Class 4."; } enum "class5" { value 5; description "Class 5."; } enum "class6" { value 6; description "Class 6."; } enum "class7" { value 7; description "Class 7."; } enum "class8" { value 8; description "Class 8."; } enum "reserved" { value 255; description "Reserved."; } } description "802.3bt draft power class."; } typedef dot3-power-pd-source-type { type enumeration { enum "unknown" { value 0; description "Unknown."; } enum "pse" { value 1; description "PSE."; } enum "reserved" { value 2; description "Reserved."; } enum "pse-and-local" { value 3; description "PSE and Local."; } } description "PD power supply source type."; } typedef dot3bt-draft-power-typex-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "type-1-pse" { value 2; description "Type 1 PSE."; } enum "type-1-pd" { value 3; description "Type 1 PD."; } enum "type-2-pse" { value 4; description "Type 2 PSE."; } enum "type-2-pd" { value 5; description "Type 2 PD."; } enum "type-3-pse" { value 6; description "Type 3 PSE."; } enum "type-3-single-pd" { value 7; description "Type 3 single-signature PD."; } enum "type-4-pse" { value 8; description "Type 4 PSE."; } enum "type-4-single-pd" { value 9; description "Type 4 single-signature PD."; } enum "type-3-dual-pd" { value 13; description "Type 3 dual-signature PD."; } enum "type-4-dual-pd" { value 15; description "Type 4 dual-signature PD."; } } description "802.3bt draft extended power type."; } typedef dot3-power-pair-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "alternative-a" { value 1; description "Alternative A."; } enum "alternative-b" { value 2; description "Alternative B."; } enum "both-alternatives" { value 3; description "Both Alternatives."; } } description "PSE extended power pairs."; } typedef autoclass-support-type { type enumeration { enum "not-support" { value 0; description "PSE does not support Autoclass."; } enum "support" { value 1; description "PSE supports Autoclass."; } } description "Whether PSE Autoclass is support."; } typedef autoclass-completed-type { type enumeration { enum "idle" { value 0; description "Autoclass idle."; } enum "completed" { value 1; description "Autoclass measurement completed."; } } description "Whether Autoclass is completed."; } typedef autoclass-request-type { type enumeration { enum "idle" { value 0; description "Autoclass idle."; } enum "requested" { value 1; description "PD requests Autoclass measurement."; } } description "Autoclass request."; } typedef pd-4pid-type { type enumeration { enum "not-support" { value 0; description "PD does not support powering of both modes."; } enum "support" { value 1; description "PD supports powering of both modes."; } } description "Whether the PD supports powering of both Modes simultaneously."; } typedef pd-load-type { type enumeration { enum "single-or-dual" { value 0; description "PD is single-signature or dual-signature and power demand on Mode A and Mode B are not electrically isolated."; } enum "dual" { value 1; description "PD is dual-signature and power demand on Mode A and Mode B are electrically isolated."; } } description "PD load."; } typedef pse-powering-status-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "2-pair" { value 1; description "2-pair powering."; } enum "4-pair-single" { value 2; description "4-pair powering single-signature PD."; } enum "4-pair-dual" { value 3; description "4-pair powering dual-signature PD."; } } description "PSE powering status."; } typedef pd-powered-status-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "single" { value 1; description "Powered single-signature PD."; } enum "2-pair-dual" { value 2; description "2-pair powered dual-signature PD."; } enum "4-pair-dual" { value 3; description "4-pair powered dual-signature PD."; } } description "PD powering status."; } typedef dual-signature-class-ext-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "class1" { value 1; description "Class 1."; } enum "class2" { value 2; description "Class 2."; } enum "class3" { value 3; description "Class 3."; } enum "class4" { value 4; description "Class 4."; } enum "class5" { value 5; description "Class 5."; } enum "single-pd-or-2pair-pse" { value 7; description "Single-signature PD or 2-pair only PSE."; } } description "Dual-signature power class ext."; } typedef dot3bt-std-class-ext-type { type enumeration { enum "reserved" { value 0; description "Reserved."; } enum "class1" { value 1; description "Class 1."; } enum "class2" { value 2; description "Class 2."; } enum "class3" { value 3; description "Class 3."; } enum "class4" { value 4; description "Class 4."; } enum "class5" { value 5; description "Class 5."; } enum "class6" { value 6; description "Class 6."; } enum "class7" { value 7; description "Class 7."; } enum "class8" { value 8; description "Class 8."; } enum "dual-signature-pd" { value 15; description "Dual-signature PD."; } } description "Extended power class."; } typedef dot3bt-std-type-ext-type { type enumeration { enum "type-3-pse" { value 0; description "Type 3 PSE."; } enum "type-4-pse" { value 1; description "Type 4 PSE."; } enum "type-3-single-pd" { value 2; description "Type 3 single-signature PD."; } enum "type-3-dual-pd" { value 3; description "Type 3 dual-signature PD."; } enum "type-4-single-pd" { value 4; description "Type 4 single-signature PD."; } enum "type-4-dual-pd" { value 5; description "Type 4 dual-signature PD."; } enum "reserved" { value 7; description "Reserved."; } } description "Extended power type."; } typedef legacy-power-capability-type { type enumeration { enum "af" { value 0; description "802.3af."; } enum "at" { value 1; description "802.3at."; } enum "bt-60" { value 2; description "802.3bt with the supply power being 60W."; } enum "bt-90" { value 3; description "802.3bt with the supply power being 90W."; } } description "Power capability."; } container lldp { presence "Enables LLDP"; description "Link layer discovery protocol."; container global-attribute { description "Configure LLDP global attribute."; leaf message-transmission-interval { type int32 { range "5..32768"; } units "s"; must "../message-transmission-interval>=(../message-transmission-delay*4)"; default "30"; description "Interval at which LLDP messages are transmitted."; } leaf message-transmission-delay { type int32 { range "1..8192"; } units "s"; must "../message-transmission-interval>=(../message-transmission-delay*4)"; default "2"; description "Time between two successive LLDP messages."; } leaf message-transmission-hold-multiplier { type int32 { range "2..10"; } default "4"; description "Multiplier on the message transmission interval that determines the actual TTL value used in an LLDPDU."; } leaf restart-delay { type int32 { range "1..10"; } units "s"; default "2"; description "Delay from when LLDP interface status becomes disabled until re-initialization will be attempted."; } leaf trap-interval { type int32 { range "5..3600"; } units "s"; default "5"; description "LLDP trap notification interval."; } leaf fast-count { type int32 { range "1..8"; } default "4"; description "Number of rapidly transmitted LLDP messages."; } choice management-address-mode { description "Management address configuration mode."; case global-mode { description "Global configuration mode of management address configuration."; leaf managment-address { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ip:ipv4/ip:addresses/ip:address/ip:ip"; } description "IP address for network management, which must exist in the device."; } leaf management-address-ipv4-bind-if { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "To specify the IP address of an interface as the LLDP management address. The device uses the interface's IP address as the management address, if no management address has been configured. The bound interface must be an Ethernet interface, but Eth-Trunk interfaces cannot be bound."; } } // case global-mode case interface-mode { description "Interface configuration mode of management address configuration."; leaf management-address-if-mode { type empty; description "When the node is configured, the LLDP management address TLV carries the IP address of the local interface."; } } // case interface-mode } // choice management-address-mode leaf mdn-status { type mdn-global-status; default "disabled"; description "MDN status."; } leaf trap-enable { type global-status; default "disabled"; config false; description "Enable the LLDP neighbor change trap function."; } } // container global-attribute container local-info { config false; description "Statistics of information about local LLDP."; leaf chassis-id-sub-type { type chassis-id-sub-type; description "Chassis type."; } leaf chassis-id { type string { length "1..765"; } description "Chassis ID."; } leaf system-name { type string { length "1..256"; } description "System name."; } leaf system-description { type string { length "1..256"; } description "System description."; } leaf up-time { type yang:date-and-time; description "Time when LLDP enabled."; } leaf-list system-capabilities-supported { type system-capabilities-type; description "Statistics of information about system capabilities supported."; } leaf-list system-capabilities-enabled { type system-capabilities-type; description "Statistics of information about system capabilities enabled."; } container management-addresss { description "List of management addresses."; list management-address { key "type value length"; description "Statistics of management address."; leaf type { type management-address-type; description "Management address type."; } leaf value { type string { length "1..93"; } description "Management address."; } leaf length { type int32 { range "0..2147483647"; } description "Management address length."; } leaf if-sub-type { type man-addr-if-sub-type; description "Management address interface type."; } leaf if-id { type int32 { range "0..2147483647"; } description "Management address interface ID."; } leaf oid { type string { length "1..640"; } description "Management address OID."; } } // list management-address } // container management-addresss } // container local-info } // container lldp } // module huawei-lldp
© 2023 YumaWorks, Inc. All rights reserved.