Cisco-IOS-XR-um-lldp-cfg

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

  • Version: 2020-03-23

    Cisco-IOS-XR-um-lldp-cfg@2020-03-23


    
      module Cisco-IOS-XR-um-lldp-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-um-lldp-cfg";
    
        prefix um-lldp-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 lldp package configuration.
         
         This YANG module augments the
         modules with configuration data.
         
         Copyright (c) 2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-03-23" {
          description "Initial release";
        }
    
        semver:module-version "1.0.0";
    
        grouping IF-BODY {
          container lldp {
            presence
              "Indicates a lldp node is configured.";
            description
              "LLDP interface configuration commands";
            container transmit {
              description
                "Disable LLDP TX on an interface";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "Disable LLDP TX on an interface";
              }  // container disable
            }  // container transmit
    
            container receive {
              description
                "Disable LLDP RX on an interface";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "Disable LLDP RX on an interface";
              }  // container disable
            }  // container receive
    
            container destination {
              description
                "Configure LLDP Destination MAC on the interface";
              container mac-address {
                presence
                  "Indicates a mac-address node is configured.";
                description
                  "Destination MAC address on the interface";
                container ieee-nearest-non-tmpr-bridge {
                  must
                    "not(../ieee-nearest-bridge)";
                  presence
                    "Indicates a ieee-nearest-non-tmpr-bridge node is configured.";
                  description
                    "IEEE Non-TMPR Bridge MAC address, 01:80:C2:00:00:03";
                }  // container ieee-nearest-non-tmpr-bridge
    
                container ieee-nearest-bridge {
                  must
                    "not(../ieee-nearest-non-tmpr-bridge)";
                  presence
                    "Indicates a ieee-nearest-bridge node is configured.";
                  description
                    "Default LLDP Destination MAC address, 01:80:C2:00:00:0E";
                }  // container ieee-nearest-bridge
              }  // container mac-address
            }  // container destination
    
            container enable {
              presence
                "Indicates a enable node is configured.";
              description
                "Enable LLDP TX and RX on an interface";
            }  // container enable
          }  // container lldp
        }  // grouping IF-BODY
    
        augment /a1:interfaces/a1:interface {
          uses IF-BODY;
        }
    
        augment /a1:interfaces/a1:interface-preconfigure {
          uses IF-BODY;
        }
    
        container lldp {
          presence
            "Indicates a lldp node is configured.";
          description
            "Enable LLDP, or configure global LLDP subcommands";
          leaf holdtime {
            type uint32 {
              range "0..65535";
            }
            description
              "Specify the holdtime (in sec) to be sent in packets";
          }
    
          leaf timer {
            type uint32 {
              range "5..65534";
            }
            description
              "Specify the rate at which LLDP packets are sent (in sec)";
          }
    
          leaf reinit {
            type uint32 {
              range "2..5";
            }
            description
              "Delay (in sec) for LLDP initialization on any interface";
          }
    
          container subinterfaces {
            description
              "Configure LLDP over Sub-interfaces";
            container enable {
              presence
                "Indicates a enable node is configured.";
              description
                "Enable LLDP over Sub-interfaces as well";
            }  // container enable
          }  // container subinterfaces
    
          container management {
            description
              "Configure LLDP over Management interface";
            container enable {
              presence
                "Indicates a enable node is configured.";
              description
                "Enable LLDP over Management interface as well";
            }  // container enable
          }  // container management
    
          container priorityaddr {
            description
              "Configure Priority to advertise Management interface address first";
            container enable {
              presence
                "Indicates a enable node is configured.";
              description
                "Enable LLDP to use Management interface address first(if configured)";
            }  // container enable
          }  // container priorityaddr
    
          container extended-show-width {
            description
              "Configure Extended Show LLDP Neighbor Width";
            container enable {
              presence
                "Indicates a enable node is configured.";
              description
                "Enable Extended Show LLDP Neighbor Width";
            }  // container enable
          }  // container extended-show-width
    
          container tlv-select {
            presence
              "Indicates a tlv-select node is configured.";
            description
              "Selection of LLDP TLVs to disable";
            container management-address {
              description
                "Management Address TLV";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable Management Address TLV";
              }  // container disable
            }  // container management-address
    
            container port-description {
              description "Port Description TLV";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable Port Description TLV";
              }  // container disable
            }  // container port-description
    
            container system-capabilities {
              description
                "System Capabilities TLV";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable System Capabilities TLV";
              }  // container disable
            }  // container system-capabilities
    
            container system-description {
              description
                "System Description TLV";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable System Description TLV";
              }  // container disable
            }  // container system-description
    
            container system-name {
              description "System Name TLV";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable System Name TLV";
              }  // container disable
            }  // container system-name
          }  // container tlv-select
        }  // container lldp
      }  // module Cisco-IOS-XR-um-lldp-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.