This submodule contains a collection of YANG definitions for Cisco IOS-XR cdp package operational data. Copyright (c) 2013-2019...
Version: 2019-04-05
submodule Cisco-IOS-XR-cdp-oper-sub1 { yang-version 1; belongs-to Cisco-IOS-XR-cdp-oper { prefix Cisco-IOS-XR-cdp-oper; } import ietf-inet-types { prefix inet; } import ietf-yang-types { prefix yang; } import Cisco-IOS-XR-types { prefix xr; } import cisco-semver { prefix semver; } 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 submodule contains a collection of YANG definitions for Cisco IOS-XR cdp package 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"; typedef Im-state { type uint32; description "Im state"; } typedef Cdp-duplex { type enumeration { enum "cdp-dplx-none" { value 0; description "cdp dplx none"; } enum "cdp-dplx-half" { value 1; description "cdp dplx half"; } enum "cdp-dplx-full" { value 2; description "cdp dplx full"; } } description "Cdp duplex"; } typedef In6-addr { type inet:ipv6-address; description "In6 addr"; } typedef Cdp-l3-addr-protocol { type enumeration { enum "ipv4" { value 0; description "Address type is v4"; } enum "ipv6" { value 1; description "Address type is v6"; } } description "Cdp l3 addr protocol"; } grouping CDP-INTERFACE { description "Information about an interface that CDP is running on"; 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"; } } // grouping CDP-INTERFACE grouping CDP-STATS { description "CDP statistics"; 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"; } } // grouping CDP-STATS grouping CDP-PROTOCOL-HELLO-ENTRY { description "Protocol entry for hello msgexchanged by CDP"; 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 } // grouping CDP-PROTOCOL-HELLO-ENTRY grouping CDP-L3-ADDR { description "Information on L3 address discovered by CDP"; 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"; } } // grouping CDP-L3-ADDR grouping CDP-ADDRESS-ENTRY { description "List of network addresses discovered by CDP"; list cdp-addr-entry { description "Next address entry in list"; container address { description "Network layer address"; uses CDP-L3-ADDR; } // container address } // list cdp-addr-entry } // grouping CDP-ADDRESS-ENTRY grouping CDP-NEIGHBOR-ENTRY-DETAILS { description "Detailed neighbor info"; container network-addresses { description "List of network addresses "; uses CDP-ADDRESS-ENTRY; } // container network-addresses container protocol-hello-list { description "List of protocol hello entries"; uses CDP-PROTOCOL-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"; } } // grouping CDP-NEIGHBOR-ENTRY-DETAILS grouping CDP-NEIGHBOR { description "Information on neighbor discovered"; list cdp-neighbor { description "Next neighbor in the list"; container detail { description "Detailed neighbor info"; uses CDP-NEIGHBOR-ENTRY-DETAILS; } // 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 } // grouping CDP-NEIGHBOR } // submodule Cisco-IOS-XR-cdp-oper-sub1
© 2023 YumaWorks, Inc. All rights reserved.