Cisco-IOS-XR-tty-server-cfg

This module contains a collection of YANG definitions for Cisco IOS-XR tty-server package configuration. This module contains d...

  • Version: 2019-04-05

    Cisco-IOS-XR-tty-server-cfg@2019-04-05


    
      module Cisco-IOS-XR-tty-server-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-tty-server-cfg";
    
        prefix tty-server-cfg;
    
        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 module contains a collection of YANG definitions
    for Cisco IOS-XR tty-server package configuration.
    
    This module contains definitions
    for the following management objects:
      tty: TTY Line Configuration
    
    Copyright (c) 2013-2019 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-07-30" {
          description "Descriptions updated.";
        }
    
        revision "2015-01-07" {
          description "IOS XR 5.3.1 revision.";
        }
    
        semver:module-version "1.0.1";
    
        container tty {
          description "TTY Line Configuration";
          container tty-lines {
            description "TTY templates";
            list tty-line {
              key "name";
              description
                "TTY Line,Use string 'console' to configure a
    console line,Use string 'default' to configure
    a default line,Use any string to configure a
    user defined template";
              container general {
                description
                  "TTY line general configuration";
                leaf length {
                  type uint32 {
                    range "0..512";
                  }
                  default "24";
                  description
                    "Number of lines on a screen.";
                }
    
                leaf absolute-timeout {
                  type uint32 {
                    range "0..10000";
                  }
                  units "minute";
                  default "0";
                  description
                    "Absolute timeout for line disconnection";
                }
    
                leaf width {
                  type uint32 {
                    range "0..512";
                  }
                  default "80";
                  description
                    "Number of characters on a screen line.";
                }
              }  // container general
    
              container telnet {
                description
                  "Telnet protocol-specific configuration";
                leaf transparent {
                  type empty;
                  description
                    "Send a CR as a CR followed by a NULL instead
    of a CRfollowed by a LF";
                }
              }  // container telnet
    
              container aaa {
                description
                  "Container class for AAA related TTY
    configuration";
                container user-groups {
                  description
                    "Users characteristics";
                  list user-group {
                    key "name";
                    description
                      "Group to which the user will belong";
                    leaf name {
                      type xr:Cisco-ios-xr-string;
                      description
                        "Name of the group";
                    }
    
                    leaf category {
                      type string;
                      mandatory true;
                      description
                        "Specify as 'root-system' for root-system
    group and 'other' for remaining groups";
                    }
                  }  // list user-group
                }  // container user-groups
    
                container authorization {
                  description
                    "Authorization parameters";
                  leaf exec {
                    type string;
                    description
                      "For starting an exec (shell)";
                  }
    
                  leaf event-manager {
                    type string;
                    description
                      "Specify 'default' or use an authorization
    list with this name";
                  }
    
                  leaf commands {
                    type string;
                    description
                      "For exec (shell) configuration";
                  }
                }  // container authorization
    
                container authentication {
                  description
                    "Authentication parameters";
                  leaf login {
                    type string;
                    description
                      "Authentication list name";
                  }
                }  // container authentication
    
                container accounting {
                  description
                    "Accounting parameters";
                  leaf exec {
                    type string;
                    description
                      "For starting an exec (shell)";
                  }
    
                  leaf commands {
                    type string;
                    description
                      "For exec (shell) configuration";
                  }
                }  // container accounting
    
                leaf login-timeout {
                  type uint32 {
                    range "0..300";
                  }
                  units "second";
                  default "30";
                  description
                    "Timeouts for any user input during login
    sequence";
                }
    
                leaf secret {
                  type xr:Md5-password;
                  description
                    "Configure a secure one way encrypted password";
                }
    
                leaf password {
                  type xr:Md5-password;
                  description
                    "Configure the password for the user";
                }
              }  // container aaa
    
              container exec {
                description
                  "EXEC timeout and timestamp configurtion";
                container timeout {
                  presence
                    "Indicates a timeout node is configured.";
                  description "EXEC Timeout";
                  leaf minutes {
                    type uint32 {
                      range "0..35791";
                    }
                    units "minute";
                    mandatory true;
                    description
                      "Timeout in minutes";
                  }
    
                  leaf seconds {
                    type uint32 {
                      range "0..2147483";
                    }
                    units "second";
                    mandatory true;
                    description
                      "Timeout in seconds";
                  }
                }  // container timeout
    
                leaf time-stamp {
                  type boolean;
                  description
                    "'True' to Enable & 'False' to Disable time
    stamp";
                }
              }  // container exec
    
              leaf name {
                type xr:Cisco-ios-xr-string;
                description
                  "Name of the template";
              }
    
              container connection {
                description
                  "Management connection configuration";
                container transport-input {
                  description
                    "Protocols to use when connecting to the
    terminal server";
                  leaf select {
                    type dt1:Tty-transport-protocol-select;
                    default "all";
                    description
                      "Choose transport protocols";
                  }
    
                  leaf protocol1 {
                    when "../select = 'some'" {
                      description
                        "../Select = Some";
                    }
                    type dt1:Tty-transport-protocol;
                    description
                      "Transport protocol1";
                  }
    
                  leaf protocol2 {
                    when "../select = 'some'" {
                      description
                        "../Select = Some";
                    }
                    type dt1:Tty-transport-protocol;
                    description
                      "Transport protocol2";
                  }
    
                  leaf none {
                    type uint32;
                    description "Not used";
                  }
                }  // container transport-input
    
                container transport-output {
                  presence
                    "Indicates a transport-output node is configured.";
                  description
                    "Protocols to use for outgoing connections";
                  leaf select {
                    type dt1:Tty-transport-protocol-select;
                    mandatory true;
                    description
                      "Choose transport protocols";
                  }
    
                  leaf protocol1 {
                    type dt1:Tty-transport-protocol;
                    description
                      "Transport protocol1";
                  }
    
                  leaf protocol2 {
                    type dt1:Tty-transport-protocol;
                    description
                      "Transport protocol2";
                  }
    
                  leaf none {
                    type uint32;
                    description "Not used";
                  }
                }  // container transport-output
    
                container session-timeout {
                  presence
                    "Indicates a session-timeout node is configured.";
                  description
                    "Interval for closing connection when there is
    no input traffic";
                  leaf timeout {
                    type uint32 {
                      range "0..35791";
                    }
                    mandatory true;
                    description
                      "Session timeout interval in minutes";
                  }
    
                  leaf direction {
                    type dt1:Tty-session-timeout-direction;
                    mandatory true;
                    description
                      "Include output traffic as well as input
    traffic";
                  }
                }  // container session-timeout
    
                leaf disconnect-character {
                  type xr:Char-num;
                  description
                    "Disconnect character's decimal equivalent value
    or Character ";
                }
    
                leaf auto-command {
                  type string;
                  description
                    "Line template's auto command";
                }
    
                leaf acl-in {
                  type string;
                  description
                    "ACL to filter ingoing connections";
                }
    
                leaf acl-out {
                  type string;
                  description
                    "ACL to filter outgoing connections";
                }
    
                leaf cli-white-space-completion {
                  type empty;
                  description
                    "Command completion on whitespace";
                }
    
                leaf session-limit {
                  type uint32 {
                    range "0..20";
                  }
                  default "6";
                  description
                    "The number of outgoing connections";
                }
    
                leaf escape-character {
                  type xr:Tty-escape-char-num;
                  default "30";
                  description
                    "Escape character or ASCII decimal equivalent
    value orspecial strings NONE,DEFAULT,BREAK";
                }
    
                leaf transport-preferred {
                  type dt1:Tty-transport-protocol;
                  description
                    "The preferred protocol to use";
                }
    
                leaf interactive-syntax-check {
                  type boolean;
                  description
                    "Set to true to turn on interactive syntax check";
                }
              }  // container connection
    
              container exec-mode {
                description
                  "Exec Mode Pager  configurtion";
                leaf pager {
                  type dt1:Tty-pager;
                  default "more";
                  description
                    "Preferred Paging Utility";
                }
              }  // container exec-mode
            }  // list tty-line
          }  // container tty-lines
        }  // container tty
      }  // module Cisco-IOS-XR-tty-server-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.