Cisco-IOS-XR-um-cdp-cfg

This module contains a collection of YANG definitions for Cisco IOS-XR cdp package configuration. This YANG module augments the...

  • Version: 2020-09-03

    Cisco-IOS-XR-um-cdp-cfg@2020-09-03


    
      module Cisco-IOS-XR-um-cdp-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-um-cdp-cfg";
    
        prefix um-cdp-cfg;
    
        import Cisco-IOS-XR-um-interface-cfg {
          prefix a1;
        }
        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 module contains a collection of YANG definitions
         for Cisco IOS-XR cdp package configuration.
         
         This YANG module augments the
         modules with configuration data.
         
         Copyright (c) 2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-09-03" {
          description "Initial release";
        }
    
        semver:module-version "1.0.0";
    
        grouping IF-BODY {
          container cdp {
            presence
              "Indicates a cdp node is configured.";
            description
              "Enable CDP on an interface";
          }  // container cdp
    
          container cdp-mac-address {
            description
              "Configure CDP MAC address on interface";
            container ethernet-slow-protocols-mac {
              presence
                "Indicates a ethernet-slow-protocols-mac node is configured.";
              description
                "Ethernet Slow-Protocols MAC, 01:80:c2:00:00:02";
            }  // container ethernet-slow-protocols-mac
          }  // container cdp-mac-address
        }  // grouping IF-BODY
    
        augment /a1:interfaces/a1:interface {
          uses IF-BODY;
        }
    
        augment /a1:interfaces/a1:interface-preconfigure {
          uses IF-BODY;
        }
    
        container cdp {
          description
            "Configure global CDP subcommands";
          container enable {
            presence
              "Indicates an enable node is configured.";
            description "Enable CDP";
          }  // container enable
    
          leaf holdtime {
            type uint32 {
              range "10..255";
            }
            description
              "Specify the holdtime (in sec) to be sent in packets";
          }
    
          leaf timer {
            type uint32 {
              range "5..254";
            }
            description
              "Specify the rate at which CDP packets are sent (in sec)";
          }
    
          container advertise {
            description
              "Specify the version of CDP advertisements";
            container v1 {
              presence
                "Indicates a v1 node is configured.";
              description
                "CDP sends version-1 advertisements only";
            }  // container v1
          }  // container advertise
    
          container log {
            description
              "Configure CDP to log Events";
            container adjacency {
              description
                "Configure CDP to log adjacency data";
              container changes {
                presence
                  "Indicates a changes node is configured.";
                description
                  "Configure CDP to log changes to adjacency table";
              }  // container changes
            }  // container adjacency
          }  // container log
        }  // container cdp
      }  // module Cisco-IOS-XR-um-cdp-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.