This module contains a collection of YANG definitions for Cisco IOS-XR line package configuration. This YANG module augments th...
Version: 2021-05-10
module Cisco-IOS-XR-um-line-cfg { yang-version 1; namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-um-line-cfg"; prefix um-line-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 line package configuration. This YANG module augments the modules with configuration data. Copyright (c) 2021 by Cisco Systems, Inc. All rights reserved."; revision "2021-05-10" { description "Initial release"; } semver:module-version "1.0.0"; container line { description "Line subcommands"; container console { description "console template"; container access-class { description "Filter connections based on an IP access list"; leaf ingress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter incoming connections"; } leaf egress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter outgoing connections"; } } // container access-class leaf disconnect-character { type xr:Char-num; description "Define the disconnect character"; } leaf escape-character { type xr:Tty-escape-char-num; default "30"; description "Change the current line template's escape character"; } container session-timeout { presence "Indicates a session-timeout node is configured."; description "Set interval for closing connection when there is no input traffic"; leaf timeout-interval { type uint32 { range "0..35791"; } mandatory true; description "Set interval for closing connection when there is no input traffic"; } container output { presence "Indicates a output node is configured."; description "Include output traffic as well as input traffic"; } // container output } // container session-timeout container transport { description "Define transport protocols for line"; container input { description "Define which protocols to use when connecting to the terminal server"; container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all } // container input container output { description "Define which protocols to use for outgoing connections"; container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet } // container output container preferred { description "Specify the preferred protocol to use"; container none { must "not(../ssh) and not(../telnet)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container telnet { must "not(../ssh) and not(../none)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet container ssh { must "not(../telnet) and not(../none)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container preferred } // container transport leaf session-limit { type uint32 { range "0..20"; } description "Set the number of outgoing connections"; } container cli { description "Set the behaviour of cli."; container whitespace { description "Whitespace behaviour"; container completion { presence "Indicates a completion node is configured."; description "Command completion on whitespace"; } // container completion } // container whitespace } // container cli container interactive { description "Interactive behaviour"; container syntax { description "Syntax of user input"; container check { presence "Indicates a check node is configured."; description "Enable the check"; } // container check } // container syntax } // container interactive } // container console container default { description "default template"; container access-class { description "Filter connections based on an IP access list"; leaf ingress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter incoming connections"; } leaf egress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter outgoing connections"; } } // container access-class leaf disconnect-character { type xr:Char-num; description "Define the disconnect character"; } leaf escape-character { type xr:Tty-escape-char-num; default "30"; description "Change the current line template's escape character"; } container session-timeout { presence "Indicates a session-timeout node is configured."; description "Set interval for closing connection when there is no input traffic"; leaf timeout-interval { type uint32 { range "0..35791"; } mandatory true; description "Set interval for closing connection when there is no input traffic"; } container output { presence "Indicates a output node is configured."; description "Include output traffic as well as input traffic"; } // container output } // container session-timeout container transport { description "Define transport protocols for line"; container input { description "Define which protocols to use when connecting to the terminal server"; container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all } // container input container output { description "Define which protocols to use for outgoing connections"; container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet } // container output container preferred { description "Specify the preferred protocol to use"; container none { must "not(../ssh) and not(../telnet)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container telnet { must "not(../ssh) and not(../none)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet container ssh { must "not(../telnet) and not(../none)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container preferred } // container transport leaf session-limit { type uint32 { range "0..20"; } description "Set the number of outgoing connections"; } container cli { description "Set the behaviour of cli."; container whitespace { description "Whitespace behaviour"; container completion { presence "Indicates a completion node is configured."; description "Command completion on whitespace"; } // container completion } // container whitespace } // container cli container interactive { description "Interactive behaviour"; container syntax { description "Syntax of user input"; container check { presence "Indicates a check node is configured."; description "Enable the check"; } // container check } // container syntax } // container interactive leaf autocommand { type string { length "1..800"; } description "Automatically execute an EXEC command"; } } // container default container templates { description "user defined template"; list template { key "template-name"; description "user defined template"; leaf template-name { type xr:Cisco-ios-xr-string { length "1..800"; } description "user defined template"; } container access-class { description "Filter connections based on an IP access list"; leaf ingress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter incoming connections"; } leaf egress { type xr:Cisco-ios-xr-string { length "1..800"; } description "Filter outgoing connections"; } } // container access-class leaf disconnect-character { type xr:Char-num; description "Define the disconnect character"; } leaf escape-character { type xr:Tty-escape-char-num; default "30"; description "Change the current line template's escape character"; } container session-timeout { presence "Indicates a session-timeout node is configured."; description "Set interval for closing connection when there is no input traffic"; leaf timeout-interval { type uint32 { range "0..35791"; } mandatory true; description "Set interval for closing connection when there is no input traffic"; } container output { presence "Indicates a output node is configured."; description "Include output traffic as well as input traffic"; } // container output } // container session-timeout container transport { description "Define transport protocols for line"; container input { description "Define which protocols to use when connecting to the terminal server"; container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all } // container input container output { description "Define which protocols to use for outgoing connections"; container all { must "not(../ssh) and not(../telnet) and not(../none)"; presence "Indicates a all node is configured."; description "All protocols"; } // container all container none { must "not(../ssh) and not(../telnet) and not(../all)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container ssh { must "not(../none) and not(../telnet) and not(../all)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; container telnet { presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet } // container ssh container telnet { must "not(../none) and not(../ssh) and not(../all)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; container ssh { presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container telnet } // container output container preferred { description "Specify the preferred protocol to use"; container none { must "not(../ssh) and not(../telnet)"; presence "Indicates a none node is configured."; description "No protocols"; } // container none container telnet { must "not(../ssh) and not(../none)"; presence "Indicates a telnet node is configured."; description "TCP/IP Telnet protocol"; } // container telnet container ssh { must "not(../telnet) and not(../none)"; presence "Indicates a ssh node is configured."; description "Unix ssh protocol"; } // container ssh } // container preferred } // container transport leaf session-limit { type uint32 { range "0..20"; } description "Set the number of outgoing connections"; } container cli { description "Set the behaviour of cli."; container whitespace { description "Whitespace behaviour"; container completion { presence "Indicates a completion node is configured."; description "Command completion on whitespace"; } // container completion } // container whitespace } // container cli container interactive { description "Interactive behaviour"; container syntax { description "Syntax of user input"; container check { presence "Indicates a check node is configured."; description "Enable the check"; } // container check } // container syntax } // container interactive leaf autocommand { type string { length "1..800"; } description "Automatically execute an EXEC command"; } } // list template } // container templates } // container line } // module Cisco-IOS-XR-um-line-cfg
© 2023 YumaWorks, Inc. All rights reserved.