Cisco-IOS-XR-um-cli-alias-cfg

This module contains a collection of YANG definitions for Cisco IOS-XR cli-alias package configuration. This YANG module augmen...

  • Version: 2021-02-23

    Cisco-IOS-XR-um-cli-alias-cfg@2021-02-23


    
      module Cisco-IOS-XR-um-cli-alias-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-um-cli-alias-cfg";
    
        prefix um-cli-alias-cfg;
    
        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 cli-alias package configuration.
         
         This YANG module augments the
         modules with configuration data.
         
         Copyright (c) 2021 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-02-23" {
          description "Initial release";
        }
    
        semver:module-version "1.0.0";
    
        feature classic-admin-config {
          description
            "Classic admin configuration supported";
        }
    
        container admin {
          if-feature classic-admin-config;
          description "Admin configuration";
          container alias {
            description
              "Create an alias for entity";
            container aliases {
              description "Alias name";
              list alias {
                key "alias-name";
                description "Alias name";
                leaf alias-name {
                  type string {
                    length "1..30";
                  }
                  description "Alias name";
                }
    
                leaf alias-body {
                  type string {
                    length "1..1014";
                  }
                  mandatory true;
                  description
                    "Alias body with optional parameters e.g,(name) show $name";
                }
              }  // list alias
            }  // container aliases
          }  // container alias
        }  // container admin
    
        container service {
          description
            "Modify use of network based services";
          container cli {
            description
              "cli configuration services";
            container interactive {
              description
                "Change interactive behavior of commands";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "Disable commands from being interactive";
              }  // container disable
            }  // container interactive
    
            container indentation {
              description "indentation tracking";
              container disable {
                presence
                  "Indicates a disable node is configured.";
                description
                  "disable the indentation";
              }  // container disable
            }  // container indentation
    
            container submode-exit {
              description
                "Exit submode when only '!' seen in interactive mode";
              container enable {
                presence
                  "Indicates a enable node is configured.";
                description "Enable the feature";
              }  // container enable
            }  // container submode-exit
    
            container commit-optimized {
              description
                "Enable optimization for regular commit";
              container enable {
                presence
                  "Indicates a enable node is configured.";
                description "Enable the feature";
              }  // container enable
            }  // container commit-optimized
    
            container delete-optimize {
              description
                "Enable delete optimize configuration";
              container enable {
                presence
                  "Indicates a enable node is configured.";
                description "Enable the feature";
              }  // container enable
            }  // container delete-optimize
    
            container configuration {
              description
                "allowing to configuration submode";
              container disable {
                description
                  "disable for read-only access users";
                leaf usergroup {
                  type string {
                    length "1..800";
                  }
                  description
                    "Disable config mode for usergroup";
                }
              }  // container disable
            }  // container configuration
    
            container history {
              description "cli commands history";
              leaf size {
                type uint32 {
                  range "1000..5000";
                }
                description
                  "maximum number of commands in history";
              }
            }  // container history
    
            container flex-cli-local-override {
              description
                "Enable Flex cli local config override";
              container enable {
                presence
                  "Indicates a enable node is configured.";
                description "Enable the feature";
              }  // container enable
            }  // container flex-cli-local-override
          }  // container cli
        }  // container service
    
        container logging {
          description
            "Modify message logging facilities";
          container suppress {
            description
              "Suppress logging behaviour";
            container deprecated {
              presence
                "Indicates a deprecated node is configured.";
              description
                "Enable deprecated message display";
            }  // container deprecated
          }  // container suppress
        }  // container logging
    
        container alias {
          description
            "Create an alias for entity";
          container aliases {
            description "Alias name";
            list alias {
              key "alias-name";
              description "Alias name";
              leaf alias-name {
                type string {
                  length "1..30";
                }
                description "Alias name";
              }
    
              leaf alias-body {
                type string {
                  length "1..1014";
                }
                mandatory true;
                description
                  "Alias body with optional parameters e.g,(name) show $name";
              }
            }  // list alias
          }  // container aliases
    
          container exec {
            description "Exec command alias";
            list alias {
              key "exec-alias-name";
              description "Exec Alias name";
              leaf exec-alias-name {
                type string {
                  length "1..30";
                }
                description "Exec Alias name";
              }
    
              leaf aliased-exec-command {
                type string {
                  length "1..800";
                }
                mandatory true;
                description
                  "Aliased exec command";
              }
            }  // list alias
          }  // container exec
    
          container config {
            description "Config command alias";
            list alias {
              key "config-alias-name";
              description "Config Alias name";
              leaf config-alias-name {
                type string {
                  length "1..30";
                }
                description "Config Alias name";
              }
    
              leaf aliased-config-command {
                type string {
                  length "1..800";
                }
                mandatory true;
                description
                  "Aliased config command";
              }
            }  // list alias
          }  // container config
        }  // container alias
      }  // module Cisco-IOS-XR-um-cli-alias-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.