Cisco-IOS-XR-um-logging-cfg

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

  • Version: 2021-03-08

    Cisco-IOS-XR-um-logging-cfg@2021-03-08


    
      module Cisco-IOS-XR-um-logging-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-um-logging-cfg";
    
        prefix um-logging-cfg;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import ietf-inet-types {
          prefix inet;
        }
        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 logging package configuration.
    
    This YANG module augments the
    modules with configuration data.
    
    Copyright (c) 2021 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2021-03-08" {
          description "Initial release";
        }
    
        semver:module-version "1.0.0";
    
        container logging {
          description
            "Modify message logging facilities";
          leaf console {
            type enumeration {
              enum "emergencies" {
                value 0;
                description
                  "System is unusable                (severity=0)";
              }
              enum "alerts" {
                value 1;
                description
                  "Immediate action needed           (severity=1)";
              }
              enum "critical" {
                value 2;
                description
                  "Critical conditions               (severity=2)";
              }
              enum "errors" {
                value 3;
                description
                  "Error conditions                  (severity=3)";
              }
              enum "warning" {
                value 4;
                description
                  "Warning conditions                (severity=4)";
              }
              enum "notifications" {
                value 5;
                description
                  "Normal but significant conditions (severity=5)";
              }
              enum "informational" {
                value 6;
                description
                  "Informational messages            (severity=6)";
              }
              enum "debugging" {
                value 7;
                description
                  "Debugging messages                (severity=7)";
              }
              enum "disable" {
                value 15;
                description
                  "Disable logging                               ";
              }
            }
            description "Set console logging";
          }
    
          leaf trap {
            type enumeration {
              enum "emergencies" {
                value 0;
                description
                  "System is unusable                (severity=0)";
              }
              enum "alerts" {
                value 1;
                description
                  "Immediate action needed           (severity=1)";
              }
              enum "critical" {
                value 2;
                description
                  "Critical conditions               (severity=2)";
              }
              enum "errors" {
                value 3;
                description
                  "Error conditions                  (severity=3)";
              }
              enum "warning" {
                value 4;
                description
                  "Warning conditions                (severity=4)";
              }
              enum "notifications" {
                value 5;
                description
                  "Normal but significant conditions (severity=5)";
              }
              enum "informational" {
                value 6;
                description
                  "Informational messages            (severity=6)";
              }
              enum "debugging" {
                value 7;
                description
                  "Debugging messages                (severity=7)";
              }
              enum "disable" {
                value 15;
                description
                  "Disable logging                               ";
              }
            }
            description "Set trap logging";
          }
    
          leaf monitor {
            type enumeration {
              enum "emergencies" {
                value 0;
                description
                  "System is unusable                (severity=0)";
              }
              enum "alerts" {
                value 1;
                description
                  "Immediate action needed           (severity=1)";
              }
              enum "critical" {
                value 2;
                description
                  "Critical conditions               (severity=2)";
              }
              enum "errors" {
                value 3;
                description
                  "Error conditions                  (severity=3)";
              }
              enum "warning" {
                value 4;
                description
                  "Warning conditions                (severity=4)";
              }
              enum "notifications" {
                value 5;
                description
                  "Normal but significant conditions (severity=5)";
              }
              enum "informational" {
                value 6;
                description
                  "Informational messages            (severity=6)";
              }
              enum "debugging" {
                value 7;
                description
                  "Debugging messages                (severity=7)";
              }
              enum "disable" {
                value 15;
                description
                  "Disable logging                               ";
              }
            }
            description "Set monitor logging";
          }
    
          container archive {
            description
              "logging to a persistent device(disk/harddisk)";
            container device {
              description
                "Configure the archive device";
              container disk0 {
                must
                  "not(../disk1 or ../harddisk)";
                presence
                  "Indicates a disk0 node is configured.";
                description
                  "Use disk0 as the archive device";
              }  // container disk0
    
              container disk1 {
                must
                  "not(../disk0 or ../harddisk)";
                presence
                  "Indicates a disk1 node is configured.";
                description
                  "Use disk1 as the archive device";
              }  // container disk1
    
              container harddisk {
                must "not(../disk0 or ../disk1)";
                presence
                  "Indicates a harddisk node is configured.";
                description
                  "Use harddisk as the archive device";
              }  // container harddisk
            }  // container device
    
            container frequency {
              description
                "The collection interval for logs";
              container daily {
                must "not(../weekly)";
                presence
                  "Indicates a daily node is configured.";
                description
                  "Collect log in files on a daily basis";
              }  // container daily
    
              container weekly {
                must "not(../daily)";
                presence
                  "Indicates a weekly node is configured.";
                description
                  "Collect log in files on a weekly basis";
              }  // container weekly
            }  // container frequency
    
            leaf file-size {
              type uint32 {
                range "1..2047";
              }
              description
                "The maximum file size for a single log file.";
            }
    
            leaf archive-size {
              type uint32 {
                range "1..2047";
              }
              description
                "The total size of the archive";
            }
    
            leaf archive-length {
              type uint32 {
                range "1..256";
              }
              description
                "The maximum no of weeks of log to maintain";
            }
    
            leaf severity {
              type enumeration {
                enum "emergencies" {
                  value 0;
                  description
                    "System is unusable                (severity=0)";
                }
                enum "alerts" {
                  value 1;
                  description
                    "Immediate action needed           (severity=1)";
                }
                enum "critical" {
                  value 2;
                  description
                    "Critical conditions               (severity=2)";
                }
                enum "errors" {
                  value 3;
                  description
                    "Error conditions                  (severity=3)";
                }
                enum "warnings" {
                  value 4;
                  description
                    "Warning conditions                (severity=4)";
                }
                enum "notifications" {
                  value 5;
                  description
                    "Normal but significant conditions (severity=5)";
                }
                enum "informational" {
                  value 6;
                  description
                    "Informational messages            (severity=6)";
                }
                enum "debugging" {
                  value 7;
                  description
                    "Debugging messages                (severity=7)";
                }
              }
              description
                "The minimum severity of log messages to archive";
            }
    
            leaf threshold {
              type uint32 {
                range "1..99";
              }
              description
                "The size threshold at which a syslog is generated";
            }
          }  // container archive
    
          container ipv4 {
            description
              "Mark the dscp/precedence bit for ipv4 packets";
            leaf dscp {
              type union {
                type uint32 {
                  range "0..63";
                }
                type enumeration {
                  enum "default" {
                    value 0;
                    description
                      "Match packets with default dscp (000000)";
                  }
                  enum "cs1" {
                    value 8;
                    description
                      "Match packets with CS1(precedence 1) dscp (001000)";
                  }
                  enum "af11" {
                    value 10;
                    description
                      "Match packets with AF11 dscp (001010)";
                  }
                  enum "af12" {
                    value 12;
                    description
                      "Match packets with AF12 dscp (001100)";
                  }
                  enum "af13" {
                    value 14;
                    description
                      "Match packets with AF13 dscp (001110)";
                  }
                  enum "cs2" {
                    value 16;
                    description
                      "Match packets with CS2(precedence 2) dscp (010000)";
                  }
                  enum "af21" {
                    value 18;
                    description
                      "Match packets with AF21 dscp (010010)";
                  }
                  enum "af22" {
                    value 20;
                    description
                      "Match packets with AF22 dscp (010100)";
                  }
                  enum "af23" {
                    value 22;
                    description
                      "Match packets with AF23 dscp (010110)";
                  }
                  enum "cs3" {
                    value 24;
                    description
                      "Match packets with CS3(precedence 3) dscp (011000)";
                  }
                  enum "af31" {
                    value 26;
                    description
                      "Match packets with AF31 dscp (011010)";
                  }
                  enum "af32" {
                    value 28;
                    description
                      "Match packets with AF32 dscp (011100)";
                  }
                  enum "af33" {
                    value 30;
                    description
                      "Match packets with AF33 dscp (011110)";
                  }
                  enum "cs4" {
                    value 32;
                    description
                      "Match packets with CS4(precedence 4) dscp (100000)";
                  }
                  enum "af41" {
                    value 34;
                    description
                      "Match packets with AF41 dscp (100010)";
                  }
                  enum "af42" {
                    value 36;
                    description
                      "Match packets with AF42 dscp (100100)";
                  }
                  enum "af43" {
                    value 38;
                    description
                      "Match packets with AF43 dscp (100110)";
                  }
                  enum "cs5" {
                    value 40;
                    description
                      "Match packets with CS5(precedence 5) dscp (101000)";
                  }
                  enum "ef" {
                    value 46;
                    description
                      "Match packets with EF dscp (101110)";
                  }
                  enum "cs6" {
                    value 48;
                    description
                      "Match packets with CS6(precedence 6) dscp (110000)";
                  }
                  enum "cs7" {
                    value 56;
                    description
                      "Match packets with CS7(precedence 7) dscp (111000)";
                  }
                }
              }
              must "not(../precedence)";
              description
                "Set IP DSCP (DiffServ CodePoint)";
            }
    
            leaf precedence {
              type union {
                type uint32 {
                  range "0..7";
                }
                type enumeration {
                  enum "routine" {
                    value 0;
                    description
                      "Match packets with routine precedence (0)";
                  }
                  enum "priority" {
                    value 1;
                    description
                      "Match packets with priority precedence (1)";
                  }
                  enum "immediate" {
                    value 2;
                    description
                      "Match packets with immediate precedence (2)";
                  }
                  enum "flash" {
                    value 3;
                    description
                      "Match packets with flash precedence (3)";
                  }
                  enum "flash-override" {
                    value 4;
                    description
                      "Match packets with flash override precedence (4)";
                  }
                  enum "critical" {
                    value 5;
                    description
                      "Match packets with critical precedence (5)";
                  }
                  enum "internet" {
                    value 6;
                    description
                      "Match packets with internetwork control precedence (6)";
                  }
                  enum "network" {
                    value 7;
                    description
                      "Match packets with network control precedence (7)";
                  }
                }
              }
              must "not(../dscp)";
              description "Set precedence";
            }
          }  // container ipv4
    
          container ipv6 {
            description
              "Mark the dscp/precedence bit for ipv6 packets";
            leaf dscp {
              type union {
                type uint32 {
                  range "0..63";
                }
                type enumeration {
                  enum "default" {
                    value 0;
                    description
                      "Match packets with default dscp (000000)";
                  }
                  enum "cs1" {
                    value 8;
                    description
                      "Match packets with CS1(precedence 1) dscp (001000)";
                  }
                  enum "af11" {
                    value 10;
                    description
                      "Match packets with AF11 dscp (001010)";
                  }
                  enum "af12" {
                    value 12;
                    description
                      "Match packets with AF12 dscp (001100)";
                  }
                  enum "af13" {
                    value 14;
                    description
                      "Match packets with AF13 dscp (001110)";
                  }
                  enum "cs2" {
                    value 16;
                    description
                      "Match packets with CS2(precedence 2) dscp (010000)";
                  }
                  enum "af21" {
                    value 18;
                    description
                      "Match packets with AF21 dscp (010010)";
                  }
                  enum "af22" {
                    value 20;
                    description
                      "Match packets with AF22 dscp (010100)";
                  }
                  enum "af23" {
                    value 22;
                    description
                      "Match packets with AF23 dscp (010110)";
                  }
                  enum "cs3" {
                    value 24;
                    description
                      "Match packets with CS3(precedence 3) dscp (011000)";
                  }
                  enum "af31" {
                    value 26;
                    description
                      "Match packets with AF31 dscp (011010)";
                  }
                  enum "af32" {
                    value 28;
                    description
                      "Match packets with AF32 dscp (011100)";
                  }
                  enum "af33" {
                    value 30;
                    description
                      "Match packets with AF33 dscp (011110)";
                  }
                  enum "cs4" {
                    value 32;
                    description
                      "Match packets with CS4(precedence 4) dscp (100000)";
                  }
                  enum "af41" {
                    value 34;
                    description
                      "Match packets with AF41 dscp (100010)";
                  }
                  enum "af42" {
                    value 36;
                    description
                      "Match packets with AF42 dscp (100100)";
                  }
                  enum "af43" {
                    value 38;
                    description
                      "Match packets with AF43 dscp (100110)";
                  }
                  enum "cs5" {
                    value 40;
                    description
                      "Match packets with CS5(precedence 5) dscp (101000)";
                  }
                  enum "ef" {
                    value 46;
                    description
                      "Match packets with EF dscp (101110)";
                  }
                  enum "cs6" {
                    value 48;
                    description
                      "Match packets with CS6(precedence 6) dscp (110000)";
                  }
                  enum "cs7" {
                    value 56;
                    description
                      "Match packets with CS7(precedence 7) dscp (111000)";
                  }
                }
              }
              must "not(../precedence)";
              description
                "Set IP DSCP (DiffServ CodePoint)";
            }
    
            leaf precedence {
              type union {
                type uint32 {
                  range "0..7";
                }
                type enumeration {
                  enum "routine" {
                    value 0;
                    description
                      "Match packets with routine precedence (0)";
                  }
                  enum "priority" {
                    value 1;
                    description
                      "Match packets with priority precedence (1)";
                  }
                  enum "immediate" {
                    value 2;
                    description
                      "Match packets with immediate precedence (2)";
                  }
                  enum "flash" {
                    value 3;
                    description
                      "Match packets with flash precedence (3)";
                  }
                  enum "flash-override" {
                    value 4;
                    description
                      "Match packets with flash override precedence (4)";
                  }
                  enum "critical" {
                    value 5;
                    description
                      "Match packets with critical precedence (5)";
                  }
                  enum "internet" {
                    value 6;
                    description
                      "Match packets with internetwork control precedence (6)";
                  }
                  enum "network" {
                    value 7;
                    description
                      "Match packets with network control precedence (7)";
                  }
                }
              }
              must "not(../dscp)";
              description "Set precedence";
            }
          }  // container ipv6
    
          container facility {
            description
              "Modify message logging facilities";
            leaf level {
              type enumeration {
                enum "kern" {
                  value 0;
                  description "Kernel";
                }
                enum "user" {
                  value 8;
                  description "User process";
                }
                enum "mail" {
                  value 16;
                  description "Mail system";
                }
                enum "daemon" {
                  value 24;
                  description "System daemons";
                }
                enum "auth" {
                  value 32;
                  description
                    "Authorization system";
                }
                enum "syslog" {
                  value 40;
                  description "Syslog itself";
                }
                enum "lpr" {
                  value 48;
                  description
                    " Line printer system";
                }
                enum "news" {
                  value 56;
                  description "USENET news";
                }
                enum "uucp" {
                  value 64;
                  description
                    "Unix-to-Unix copy system";
                }
                enum "cron" {
                  value 72;
                  description "Cron/at facility";
                }
                enum "local0" {
                  value 128;
                  description "Local use";
                }
                enum "local1" {
                  value 136;
                  description "Local use";
                }
                enum "local2" {
                  value 144;
                  description "Local use";
                }
                enum "local3" {
                  value 152;
                  description "Local use";
                }
                enum "local4" {
                  value 160;
                  description "Local use";
                }
                enum "local5" {
                  value 168;
                  description "Local use";
                }
                enum "local6" {
                  value 176;
                  description "Local use";
                }
                enum "local7" {
                  value 184;
                  description "Local use";
                }
                enum "sys9" {
                  value 192;
                  description "System use";
                }
                enum "sys10" {
                  value 200;
                  description "System use";
                }
                enum "sys11" {
                  value 208;
                  description "System use";
                }
                enum "sys12" {
                  value 216;
                  description "System use";
                }
                enum "sys13" {
                  value 224;
                  description "System use";
                }
                enum "sys14" {
                  value 232;
                  description "System use";
                }
              }
              description "configure this node";
            }
          }  // container facility
    
          container buffered {
            description
              "Set buffered logging parameters";
            leaf logging-buffer-size {
              type uint32 {
                range "307200..125000000";
              }
              description "Logging buffer size";
            }
    
            leaf level {
              type enumeration {
                enum "emergencies" {
                  value 0;
                  description
                    "System is unusable";
                }
                enum "alerts" {
                  value 1;
                  description
                    "Immediate action needed";
                }
                enum "critical" {
                  value 2;
                  description
                    "Critical conditions";
                }
                enum "errors" {
                  value 3;
                  description "Error conditions";
                }
                enum "warnings" {
                  value 4;
                  description
                    "Warning conditions";
                }
                enum "notifications" {
                  value 5;
                  description
                    "Normal but significant conditions";
                }
                enum "informational" {
                  value 6;
                  description
                    "Informational messages";
                }
                enum "debugging" {
                  value 7;
                  description
                    "Debugging messages";
                }
              }
              description "configure this node";
            }
    
            container discriminator {
              description
                "Set logging buffer discriminator";
              leaf match1 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set match discriminator 1";
              }
    
              leaf match2 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set match discriminator 2";
              }
    
              leaf match3 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set match discriminator 3";
              }
    
              leaf nomatch1 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set no-match discriminator 1";
              }
    
              leaf nomatch2 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set no-match discriminator 2";
              }
    
              leaf nomatch3 {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description
                  "Set no-match discriminator 3";
              }
            }  // container discriminator
          }  // container buffered
    
          container container {
            description
              "Enable to include containers application logs";
            container all {
              presence
                "Indicates a all node is configured.";
              description
                "All running container";
            }  // container all
          }  // container container
    
          container files {
            description "Set file logging";
            list file {
              key "file-name";
              description "Set file logging";
              leaf file-name {
                type xr:Cisco-ios-xr-string {
                  length "1..256";
                }
                description "Set file logging";
              }
    
              leaf path {
                type string {
                  length "1..256";
                }
                mandatory true;
                description "Set file path ";
              }
    
              leaf maxfilesize {
                type uint32 {
                  range "1..2097152";
                }
                mandatory true;
                description "Set max file size";
              }
    
              leaf severity {
                type enumeration {
                  enum "emergencies" {
                    value 0;
                    description
                      "System is unusable                (severity=0)";
                  }
                  enum "alerts" {
                    value 1;
                    description
                      "Immediate action needed           (severity=1)";
                  }
                  enum "critical" {
                    value 2;
                    description
                      "Critical conditions               (severity=2)";
                  }
                  enum "error" {
                    value 3;
                    description
                      "Error conditions                  (severity=3)";
                  }
                  enum "warning" {
                    value 4;
                    description
                      "Warning conditions                (severity=4)";
                  }
                  enum "notifications" {
                    value 5;
                    description
                      "Normal but significant conditions (severity=5)";
                  }
                  enum "info" {
                    value 6;
                    description
                      "Informational messages            (severity=6)";
                  }
                  enum "debugging" {
                    value 7;
                    description
                      "Debugging messages                (severity=7)";
                  }
                }
                mandatory true;
                description "Set severity level";
              }
    
              container local-accounting {
                presence
                  "Indicates a local-accounting node is configured.";
                description
                  "Store only the command accounting logs";
                container send-to-remote {
                  description
                    "Send the command accounting logs to syslog server";
                  container facility {
                    description
                      "Modify message logging facilities";
                    leaf level {
                      type enumeration {
                        enum "kern" {
                          value 0;
                          description "Kernel";
                        }
                        enum "user" {
                          value 8;
                          description
                            "User process";
                        }
                        enum "mail" {
                          value 16;
                          description
                            "Mail system";
                        }
                        enum "daemon" {
                          value 24;
                          description
                            "System daemons";
                        }
                        enum "auth" {
                          value 32;
                          description
                            "Authorization system";
                        }
                        enum "syslog" {
                          value 40;
                          description
                            "Syslog itself";
                        }
                        enum "lpr" {
                          value 48;
                          description
                            " Line printer system";
                        }
                        enum "news" {
                          value 56;
                          description
                            "USENET news";
                        }
                        enum "uucp" {
                          value 64;
                          description
                            "Unix-to-Unix copy system";
                        }
                        enum "cron" {
                          value 72;
                          description
                            "Cron/at facility";
                        }
                        enum "local0" {
                          value 128;
                          description
                            "Local use";
                        }
                        enum "local1" {
                          value 136;
                          description
                            "Local use";
                        }
                        enum "local2" {
                          value 144;
                          description
                            "Local use";
                        }
                        enum "local3" {
                          value 152;
                          description
                            "Local use";
                        }
                        enum "local4" {
                          value 160;
                          description
                            "Local use";
                        }
                        enum "local5" {
                          value 168;
                          description
                            "Local use";
                        }
                        enum "local6" {
                          value 176;
                          description
                            "Local use";
                        }
                        enum "local7" {
                          value 184;
                          description
                            "Local use";
                        }
                        enum "sys9" {
                          value 192;
                          description
                            "System use";
                        }
                        enum "sys10" {
                          value 200;
                          description
                            "System use";
                        }
                        enum "sys11" {
                          value 208;
                          description
                            "System use";
                        }
                        enum "sys12" {
                          value 216;
                          description
                            "System use";
                        }
                        enum "sys13" {
                          value 224;
                          description
                            "System use";
                        }
                        enum "sys14" {
                          value 232;
                          description
                            "System use";
                        }
                      }
                      description
                        "configure this node";
                    }
                  }  // container facility
                }  // container send-to-remote
              }  // container local-accounting
    
              container discriminator {
                description
                  "Set file logging discriminator";
                leaf match1 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set match discriminator 1";
                }
    
                leaf match2 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set match discriminator 2";
                }
    
                leaf match3 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set match discriminator 3";
                }
    
                leaf nomatch1 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set no-match discriminator 1";
                }
    
                leaf nomatch2 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set no-match discriminator 2";
                }
    
                leaf nomatch3 {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Set no-match discriminator 3";
                }
              }  // container discriminator
            }  // list file
          }  // container files
    
          leaf history {
            type enumeration {
              enum "emergencies" {
                value 0;
                description "System is unusable";
              }
              enum "alerts" {
                value 1;
                description
                  "Immediate action needed";
              }
              enum "critical" {
                value 2;
                description
                  "Critical conditions";
              }
              enum "errors" {
                value 3;
                description "Error conditions";
              }
              enum "warnings" {
                value 4;
                description "Warning conditions";
              }
              enum "notifications" {
                value 5;
                description
                  "Normal but significant conditions";
              }
              enum "informational" {
                value 6;
                description
                  "Informational messages";
              }
              enum "debugging" {
                value 7;
                description "Debugging messages";
              }
              enum "disable" {
                value 15;
                description "Disable logging";
              }
            }
            description "Set history logging";
          }
    
          leaf history-size {
            type uint32 {
              range "1..500";
            }
            description "Logging history size";
          }
    
          container tls-servers {
            description "Secure server over tls";
            list tls-server {
              key "tls-server-name";
              description
                "Secure server over tls";
              leaf tls-server-name {
                type string {
                  length "1..800";
                }
                description
                  "Secure server over tls";
              }
    
              leaf vrf {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description "Set VRF option";
              }
    
              container address {
                description
                  "Specify a TLS server address";
                leaf ipv4 {
                  type inet:ipv4-address-no-zone;
                  description "IPv4 Address";
                }
    
                leaf ipv6 {
                  type inet:ipv6-address-no-zone;
                  description "IPv6 Address";
                }
              }  // container address
    
              leaf tls-hostname {
                type xr:Cisco-ios-xr-string {
                  length "1..800";
                }
                description
                  "Hostname or FQDN of Secure Log server";
              }
    
              leaf trustpoint {
                type xr:Cisco-ios-xr-string {
                  length "1..32";
                }
                description "Trustpoint";
              }
    
              leaf severity {
                type enumeration {
                  enum "emergencies" {
                    value 0;
                    description
                      "System is unusable                (severity=0)";
                  }
                  enum "alerts" {
                    value 1;
                    description
                      "Immediate action needed           (severity=1)";
                  }
                  enum "critical" {
                    value 2;
                    description
                      "Critical conditions               (severity=2)";
                  }
                  enum "errors" {
                    value 3;
                    description
                      "Error conditions                  (severity=3)";
                  }
                  enum "warnings" {
                    value 4;
                    description
                      "Warning conditions                (severity=4)";
                  }
                  enum "notifications" {
                    value 5;
                    description
                      "Normal but significant conditions (severity=5)";
                  }
                  enum "informational" {
                    value 6;
                    description
                      "Informational messages            (severity=6)";
                  }
                  enum "debugging" {
                    value 7;
                    description
                      "Debugging messages                (severity=7)";
                  }
                }
                description
                  "severity of remote host";
              }
            }  // list tls-server
          }  // container tls-servers
    
          container vrfs {
            description "Set VRF option";
            list vrf {
              key "vrf-name";
              description "Set VRF option";
              leaf vrf-name {
                type union {
                  type string {
                    pattern 'default';
                  }
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                }
                description "Set VRF option";
              }
    
              container host-names {
                list host-name {
                  key "name";
                  description
                    "Name of the logging host";
                  leaf name {
                    type xr:Cisco-ios-xr-string {
                      length "1..1024";
                      pattern '[a-zA-Z0-9._-]+';
                    }
                    description
                      "Name of the logging host";
                  }
    
                  leaf severity {
                    type enumeration {
                      enum "emergencies" {
                        value 0;
                        description
                          "System is unusable                (severity=0)";
                      }
                      enum "alerts" {
                        value 1;
                        description
                          "Immediate action needed           (severity=1)";
                      }
                      enum "critical" {
                        value 2;
                        description
                          "Critical conditions               (severity=2)";
                      }
                      enum "error" {
                        value 3;
                        description
                          "Error conditions                  (severity=3)";
                      }
                      enum "warning" {
                        value 4;
                        description
                          "Warning conditions                (severity=4)";
                      }
                      enum "notifications" {
                        value 5;
                        description
                          "Normal but significant conditions (severity=5)";
                      }
                      enum "info" {
                        value 6;
                        description
                          "Informational messages            (severity=6)";
                      }
                      enum "debugging" {
                        value 7;
                        description
                          "Debugging messages                (severity=7)";
                      }
                    }
                    description
                      "Set severity of  messages for particular remote host/vrf";
                  }
    
                  leaf port {
                    type uint32 {
                      range "0..65535";
                    }
                    description
                      "Set UDP port for this remote host/vrf";
                  }
    
                  leaf operator {
                    type enumeration {
                      enum "equals-or-higher" {
                        value 0;
                        description
                          "Log messages equal to or higher than severity";
                      }
                      enum "equals" {
                        value 1;
                        description
                          "Log messages equal to severity";
                      }
                      enum "not-equals" {
                        value 2;
                        description
                          "Log messages not equal to severity";
                      }
                    }
                    description
                      "Set severity operator of  messages for particular remote host/vrf";
                  }
                }  // list host-name
              }  // container host-names
    
              container host-ipv4-addresses {
                list host-ipv4-address {
                  key "ipv4-address";
                  description
                    "IPV4 address of the logging host";
                  leaf ipv4-address {
                    type inet:ipv4-address-no-zone;
                    description
                      "IPV4 address of the logging host";
                  }
    
                  leaf severity {
                    type enumeration {
                      enum "emergencies" {
                        value 0;
                        description
                          "System is unusable                (severity=0)";
                      }
                      enum "alerts" {
                        value 1;
                        description
                          "Immediate action needed           (severity=1)";
                      }
                      enum "critical" {
                        value 2;
                        description
                          "Critical conditions               (severity=2)";
                      }
                      enum "error" {
                        value 3;
                        description
                          "Error conditions                  (severity=3)";
                      }
                      enum "warning" {
                        value 4;
                        description
                          "Warning conditions                (severity=4)";
                      }
                      enum "notifications" {
                        value 5;
                        description
                          "Normal but significant conditions (severity=5)";
                      }
                      enum "info" {
                        value 6;
                        description
                          "Informational messages            (severity=6)";
                      }
                      enum "debugging" {
                        value 7;
                        description
                          "Debugging messages                (severity=7)";
                      }
                    }
                    description
                      "Set severity of  messages for particular remote host/vrf";
                  }
    
                  leaf port {
                    type uint32 {
                      range "0..65535";
                    }
                    description
                      "Set UDP port for this remote host/vrf";
                  }
    
                  leaf operator {
                    type enumeration {
                      enum "equals-or-higher" {
                        value 0;
                        description
                          "Log messages equal to or higher than severity";
                      }
                      enum "equals" {
                        value 1;
                        description
                          "Log messages equal to severity";
                      }
                      enum "not-equals" {
                        value 2;
                        description
                          "Log messages not equal to severity";
                      }
                    }
                    description
                      "Set severity operator of  messages for particular remote host/vrf";
                  }
                }  // list host-ipv4-address
              }  // container host-ipv4-addresses
    
              container host-ipv6-addresses {
                list host-ipv6-address {
                  key "ipv6-address";
                  description
                    "IPV6 address of the logging host";
                  leaf ipv6-address {
                    type inet:ipv4-address-no-zone;
                    description
                      "IPV6 address of the logging host";
                  }
    
                  leaf severity {
                    type enumeration {
                      enum "emergencies" {
                        value 0;
                        description
                          "System is unusable                (severity=0)";
                      }
                      enum "alerts" {
                        value 1;
                        description
                          "Immediate action needed           (severity=1)";
                      }
                      enum "critical" {
                        value 2;
                        description
                          "Critical conditions               (severity=2)";
                      }
                      enum "error" {
                        value 3;
                        description
                          "Error conditions                  (severity=3)";
                      }
                      enum "warning" {
                        value 4;
                        description
                          "Warning conditions                (severity=4)";
                      }
                      enum "notifications" {
                        value 5;
                        description
                          "Normal but significant conditions (severity=5)";
                      }
                      enum "info" {
                        value 6;
                        description
                          "Informational messages            (severity=6)";
                      }
                      enum "debugging" {
                        value 7;
                        description
                          "Debugging messages                (severity=7)";
                      }
                    }
                    description
                      "Set severity of  messages for particular remote host/vrf";
                  }
    
                  leaf port {
                    type uint32 {
                      range "0..65535";
                    }
                    description
                      "Set UDP port for this remote host/vrf";
                  }
    
                  leaf operator {
                    type enumeration {
                      enum "equals-or-higher" {
                        value 0;
                        description
                          "Log messages equal to or higher than severity";
                      }
                      enum "equals" {
                        value 1;
                        description
                          "Log messages equal to severity";
                      }
                      enum "not-equals" {
                        value 2;
                        description
                          "Log messages not equal to severity";
                      }
                    }
                    description
                      "Set severity operator of  messages for particular remote host/vrf";
                  }
                }  // list host-ipv6-address
              }  // container host-ipv6-addresses
            }  // list vrf
          }  // container vrfs
    
          leaf hostnameprefix {
            type xr:Cisco-ios-xr-string {
              length "1..800";
            }
            description
              "Hostname prefix to add on msgs to servers";
          }
    
          leaf localfilesize {
            type uint32 {
              range "0..4294967295";
            }
            description
              "Set size of the local log file";
          }
    
          container source-interfaces {
            description
              "Specify interface for source address in logging transactions";
            list source-interface {
              key "source-interface-name";
              description
                "Specify interface for source address in logging transactions";
              leaf source-interface-name {
                type xr:Interface-name;
                description
                  "Specify interface for source address in logging transactions";
              }
    
              container vrfs {
                description "Set VRF option";
                list vrf {
                  key "vrf-name";
                  description "Set VRF option";
                  leaf vrf-name {
                    type union {
                      type string {
                        pattern 'default';
                      }
                      type xr:Cisco-ios-xr-string {
                        length "1..1024";
                      }
                    }
                    description "Set VRF option";
                  }
                }  // list vrf
              }  // container vrfs
            }  // list source-interface
          }  // container source-interfaces
    
          container suppress {
            description
              "Suppress logging behaviour";
            container duplicates {
              presence
                "Indicates a duplicates node is configured.";
              description
                "Suppress consecutive duplicate messages";
            }  // container duplicates
          }  // container suppress
    
          container format {
            description
              "Specify syslog message format send to the server";
            container rfc5424 {
              must "not(../bsd)";
              presence
                "Indicates a rfc5424 node is configured.";
              description
                "Enable to send the syslog message rfc5424 format ";
            }  // container rfc5424
    
            container bsd {
              must "not(../rfc5424)";
              presence
                "Indicates a bsd node is configured.";
              description
                "Enable to send the syslog message as BSD format ";
            }  // container bsd
          }  // container format
        }  // container logging
      }  // module Cisco-IOS-XR-um-logging-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.