This module contains a collection of YANG definitions for Cisco IOS-XR cdp package operational data. This module contains defin...
Version: 2019-04-05
module Cisco-IOS-XR-cdp-oper { yang-version 1; namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-cdp-oper"; prefix cdp-oper; import Cisco-IOS-XR-types { prefix xr; } import cisco-semver { prefix semver; } include Cisco-IOS-XR-cdp-oper-sub1 { revision-date "2019-04-05"; } organization "Cisco Systems, Inc."; contact "Cisco Systems, Inc. Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: cs-yang@cisco.com"; description "This module contains a collection of YANG definitions for Cisco IOS-XR cdp package operational data. This module contains definitions for the following management objects: cdp: CDP operational data Copyright (c) 2013-2019 by Cisco Systems, Inc. All rights reserved."; revision "2019-04-05" { description "Establish semantic version baseline."; } revision "2019-01-09" { description "Fixing yang usability issues."; } revision "2015-07-30" { description "Revison descritption string."; } revision "2015-01-07" { description "IOS XR 5.3.1 revision."; } semver:module-version "1.0.1"; container cdp { config false; description "CDP operational data"; container nodes { description "Per node CDP operational data"; list node { key "node-name"; description "The CDP operational data for a particular node"; container neighbors { description "The CDP neighbor tables on this node"; container details { description "The detailed CDP neighbor table"; list detail { description "Detailed information about a neighbor discovered by CDP"; leaf interface-name { type xr:Interface-name; description "CDP neighbor interface"; } leaf device-id { type string; description "The neighboring device identifier"; } list cdp-neighbor { description "Next neighbor in the list"; container detail { description "Detailed neighbor info"; container network-addresses { description "List of network addresses "; list cdp-addr-entry { description "Next address entry in list"; container address { description "Network layer address"; leaf address-type { type Cdp-l3-addr-protocol; description "AddressType"; } leaf ipv4-address { when "../address-type = 'ipv4'" { description "../AddressType = 'IPv4'"; } type inet:ipv4-address; description "Address type is v4"; } leaf ipv6-address { when "../address-type = 'ipv6'" { description "../AddressType = 'IPv6'"; } type In6-addr; description "Address type is v6"; } } // container address } // list cdp-addr-entry } // container network-addresses container protocol-hello-list { description "List of protocol hello entries"; list cdp-prot-hello-entry { description "Next protocol hello entry in list"; leaf hello-message { type yang:hex-string; description "Protocol Hello msg"; } } // list cdp-prot-hello-entry } // container protocol-hello-list leaf version { type string; description "Version TLV"; } leaf vtp-domain { type string; description "VLAN Trunk Protocol domain"; } leaf native-vlan { type uint32; description "Native VLAN"; } leaf duplex { type Cdp-duplex; description "Duplex setting"; } leaf system-name { type string; description "SysName"; } } // container detail leaf receiving-interface-name { type xr:Interface-name; description "Interface the neighbor entry was received on "; } leaf device-id { type string; description "Device identifier"; } leaf port-id { type string; description "Outgoing port identifier"; } leaf header-version { type uint8; description "Version number"; } leaf hold-time { type uint16; description "Remaining hold time"; } leaf capabilities { type string; description "Neighbor Capabilities"; } leaf platform { type string; description "Platform type"; } } // list cdp-neighbor } // list detail } // container details container devices { description "The detailed CDP neighbor table"; list device { key "device-id"; description "Detailed information about a neighbor discovered by CDP"; leaf device-id { type string; description "The neighboring device identifier"; } list cdp-neighbor { description "Next neighbor in the list"; container detail { description "Detailed neighbor info"; container network-addresses { description "List of network addresses "; list cdp-addr-entry { description "Next address entry in list"; container address { description "Network layer address"; leaf address-type { type Cdp-l3-addr-protocol; description "AddressType"; } leaf ipv4-address { when "../address-type = 'ipv4'" { description "../AddressType = 'IPv4'"; } type inet:ipv4-address; description "Address type is v4"; } leaf ipv6-address { when "../address-type = 'ipv6'" { description "../AddressType = 'IPv6'"; } type In6-addr; description "Address type is v6"; } } // container address } // list cdp-addr-entry } // container network-addresses container protocol-hello-list { description "List of protocol hello entries"; list cdp-prot-hello-entry { description "Next protocol hello entry in list"; leaf hello-message { type yang:hex-string; description "Protocol Hello msg"; } } // list cdp-prot-hello-entry } // container protocol-hello-list leaf version { type string; description "Version TLV"; } leaf vtp-domain { type string; description "VLAN Trunk Protocol domain"; } leaf native-vlan { type uint32; description "Native VLAN"; } leaf duplex { type Cdp-duplex; description "Duplex setting"; } leaf system-name { type string; description "SysName"; } } // container detail leaf receiving-interface-name { type xr:Interface-name; description "Interface the neighbor entry was received on "; } leaf device-id { type string; description "Device identifier"; } leaf port-id { type string; description "Outgoing port identifier"; } leaf header-version { type uint8; description "Version number"; } leaf hold-time { type uint16; description "Remaining hold time"; } leaf capabilities { type string; description "Neighbor Capabilities"; } leaf platform { type string; description "Platform type"; } } // list cdp-neighbor } // list device } // container devices container summaries { description "The CDP neighbor summary table"; list summary { description "Brief information about a neighbor discovered by CDP"; leaf interface-name { type xr:Interface-name; description "CDP neighbor interface"; } leaf device-id { type string; description "The neighboring device identifier"; } list cdp-neighbor { description "Next neighbor in the list"; container detail { description "Detailed neighbor info"; container network-addresses { description "List of network addresses "; list cdp-addr-entry { description "Next address entry in list"; container address { description "Network layer address"; leaf address-type { type Cdp-l3-addr-protocol; description "AddressType"; } leaf ipv4-address { when "../address-type = 'ipv4'" { description "../AddressType = 'IPv4'"; } type inet:ipv4-address; description "Address type is v4"; } leaf ipv6-address { when "../address-type = 'ipv6'" { description "../AddressType = 'IPv6'"; } type In6-addr; description "Address type is v6"; } } // container address } // list cdp-addr-entry } // container network-addresses container protocol-hello-list { description "List of protocol hello entries"; list cdp-prot-hello-entry { description "Next protocol hello entry in list"; leaf hello-message { type yang:hex-string; description "Protocol Hello msg"; } } // list cdp-prot-hello-entry } // container protocol-hello-list leaf version { type string; description "Version TLV"; } leaf vtp-domain { type string; description "VLAN Trunk Protocol domain"; } leaf native-vlan { type uint32; description "Native VLAN"; } leaf duplex { type Cdp-duplex; description "Duplex setting"; } leaf system-name { type string; description "SysName"; } } // container detail leaf receiving-interface-name { type xr:Interface-name; description "Interface the neighbor entry was received on "; } leaf device-id { type string; description "Device identifier"; } leaf port-id { type string; description "Outgoing port identifier"; } leaf header-version { type uint8; description "Version number"; } leaf hold-time { type uint16; description "Remaining hold time"; } leaf capabilities { type string; description "Neighbor Capabilities"; } leaf platform { type string; description "Platform type"; } } // list cdp-neighbor } // list summary } // container summaries } // container neighbors container statistics { description "The CDP traffic statistics for this node"; leaf received-packets { type uint32; description "CDP packets received"; } leaf received-packets-v1 { type uint32; description "version1 CDP packets received"; } leaf received-packets-v2 { type uint32; description "version2 CDP packets received"; } leaf transmitted-packets { type uint32; description "CDP packets transmitted"; } leaf transmitted-packets-v1 { type uint32; description "Version1 CDP packets transmitted"; } leaf transmitted-packets-v2 { type uint32; description "Version2 CDP packets transmitted"; } leaf header-errors { type uint32; description "Header syntax errors"; } leaf checksum-errors { type uint32; description "crc errors in packets"; } leaf encapsulation-errors { type uint32; description "Transmission errors"; } leaf bad-packet-errors { type uint32; description "Bad packet received and dropped"; } leaf out-of-memory-errors { type uint32; description "Out-of-memory conditions"; } leaf truncated-packet-errors { type uint32; description "Truncated messages"; } leaf header-version-errors { type uint32; description "Can't handle receive version"; } leaf open-file-errors { type uint32; description "Cannot open file"; } } // container statistics container interfaces { description "The table of interfaces on which CDP is running on this node"; list interface { key "interface-name"; description "Operational data for an interface on which CDP is running"; leaf interface-name { type xr:Interface-name; description "The interface name"; } leaf interface-handle { type xr:Interface-name; description "Interface"; } leaf basecaps-state { type Im-state; description "Interface basecaps state"; } leaf cdp-protocol-state { type Im-state; description "Interface CDP protocol state"; } leaf interface-encaps { type string; description "Interface encapsulation"; } } // list interface } // container interfaces leaf node-name { type xr:Node-id; description "The identifier for the node"; } } // list node } // container nodes } // container cdp } // module Cisco-IOS-XR-cdp-oper
© 2023 YumaWorks, Inc. All rights reserved.