Cisco-IOS-XR-um-logging-correlator-cfg

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

  • Version: 2020-09-30

    Cisco-IOS-XR-um-logging-correlator-cfg@2020-09-30


    
      module Cisco-IOS-XR-um-logging-correlator-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-um-logging-correlator-cfg";
    
        prefix um-logging-correlator-cfg;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import Cisco-IOS-XR-um-logging-cfg {
          prefix a1;
        }
        import cisco-semver {
          prefix semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
         
         Postal: 170 West Tasman Drive
         San Jose, CA 95134
         
         Tel: +1 800 553-NETS
         
         E-mail: cs-yang@cisco.com";
    
        description
          "This module contains a collection of YANG definitions
         for Cisco IOS-XR logging-correlator package configuration.
         
         This YANG module augments the
         modules with configuration data.
         
         Copyright (c) 2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-09-30" {
          description "Initial release";
        }
    
        semver:module-version "1.0.0";
    
        augment /a1:logging {
          container correlator {
            description
              "Configure properties of the event correlator";
            leaf buffer-size {
              type uint32 {
                range "1024..52428800";
              }
              description
                "Configure size of the correlator buffer";
            }
    
            container rules {
              description
                "Configure a specified correlation rule";
              list rule {
                must
                  "type/stateful/timeout or type/stateful/timeout-rootcause or
                 type/stateful/context-correlation or type/stateful/reparent or
                 type/stateful/reissue-nonbistate or type/stateful/rootcause or
                 type/stateful/nonrootcause/alarms/alarm or
                 type/nonstateful/timeout or type/nonstateful/timeout-rootcause or
                 type/nonstateful/context-correlation or
                 type/nonstateful/rootcause or
                 type/nonstateful/nonrootcause/alarms/alarm";
                key "rule-name";
                description
                  "Configure a specified correlation rule";
                leaf rule-name {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description
                    "Configure a specified correlation rule";
                }
    
                container type {
                  description
                    "type of rule - stateful or nonstateful";
                  container stateful {
                    description
                      "stateful rule type";
                    leaf timeout {
                      type uint32 {
                        range "1..7200000";
                      }
                      description
                        "Specify timeout";
                    }
    
                    leaf timeout-rootcause {
                      type uint32 {
                        range "1..7200000";
                      }
                      description
                        "Specify timeout for root-cause";
                    }
    
                    container context-correlation {
                      presence
                        "Indicates a context-correlation node is configured.";
                      description
                        "Specify enable correlation on context";
                    }  // container context-correlation
    
                    container reparent {
                      presence
                        "Indicates a reparent node is configured.";
                      description
                        "Specify reparent of alarm on parent clear";
                    }  // container reparent
    
                    container reissue-nonbistate {
                      presence
                        "Indicates a reissue-nonbistate node is configured.";
                      description
                        "Specify reissue of non-bistate alarms on parent clear";
                    }  // container reissue-nonbistate
    
                    container rootcause {
                      presence
                        "Indicates a rootcause node is configured.";
                      description
                        "Specify root cause alarm: Category/Group/Code combos";
                      leaf message-category {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Specify root cause alarm: Category/Group/Code combos";
                      }
    
                      leaf group-name {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Group name of root message";
                      }
    
                      leaf message-code {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Message code of root message";
                      }
                    }  // container rootcause
    
                    container nonrootcause {
                      description
                        "nonrootcause alarm";
                      container alarms {
                        description
                          "Specify non-root cause alarm: Category/Group/Code combos";
                        list alarm {
                          key "message-category group-name message-code";
                          description
                            "Specify non-root cause alarm: Category/Group/Code combos";
                          leaf message-category {
                            type string {
                              length "1..32";
                            }
                            description
                              "Specify non-root cause alarm: Category/Group/Code combos";
                          }
    
                          leaf group-name {
                            type string {
                              length "1..32";
                            }
                            description
                              "Group name of correlated message";
                          }
    
                          leaf message-code {
                            type string {
                              length "1..32";
                            }
                            description
                              "Message code of correlated message";
                          }
                        }  // list alarm
                      }  // container alarms
                    }  // container nonrootcause
                  }  // container stateful
    
                  container nonstateful {
                    description
                      "non-stateful rule type";
                    leaf timeout {
                      type uint32 {
                        range "1..7200000";
                      }
                      description
                        "Specify timeout";
                    }
    
                    leaf timeout-rootcause {
                      type uint32 {
                        range "1..7200000";
                      }
                      description
                        "Specify timeout for root-cause";
                    }
    
                    container context-correlation {
                      presence
                        "Indicates a context-correlation node is configured.";
                      description
                        "Specify enable correlation on context";
                    }  // container context-correlation
    
                    container rootcause {
                      presence
                        "Indicates a rootcause node is configured.";
                      description
                        "Specify root cause alarm: Category/Group/Code combos";
                      leaf message-category {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Specify root cause alarm: Category/Group/Code combos";
                      }
    
                      leaf group-name {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Group name of root message";
                      }
    
                      leaf message-code {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        mandatory true;
                        description
                          "Message code of root message";
                      }
                    }  // container rootcause
    
                    container nonrootcause {
                      description
                        "nonrootcause alarm";
                      container alarms {
                        description
                          "Specify non-root cause alarm: Category/Group/Code combos";
                        list alarm {
                          key "message-category group-name message-code";
                          description
                            "Specify non-root cause alarm: Category/Group/Code combos";
                          leaf message-category {
                            type string {
                              length "1..32";
                            }
                            description
                              "Specify non-root cause alarm: Category/Group/Code combos";
                          }
    
                          leaf group-name {
                            type string {
                              length "1..32";
                            }
                            description
                              "Group name of correlated message";
                          }
    
                          leaf message-code {
                            type string {
                              length "1..32";
                            }
                            description
                              "Message code of correlated message";
                          }
                        }  // list alarm
                      }  // container alarms
                    }  // container nonrootcause
                  }  // container nonstateful
                }  // container type
    
                container apply {
                  description "Apply rule";
                  container all-of-router {
                    presence
                      "Indicates a all-of-router node is configured.";
                    description
                      "Apply the rule to all of the router";
                  }  // container all-of-router
    
                  container locations {
                    description
                      "Apply rule to specified location";
                    list location {
                      key "location-name";
                      description
                        "Apply rule to specified location";
                      leaf location-name {
                        type xr:Node-id;
                        description
                          "Apply rule to specified location";
                      }
                    }  // list location
                  }  // container locations
    
                  container contexts {
                    description
                      "Apply rule to specified context";
                    list context {
                      key "context-name";
                      description
                        "Apply rule to specified context";
                      leaf context-name {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        description
                          "Apply rule to specified context";
                      }
                    }  // list context
                  }  // container contexts
                }  // container apply
              }  // list rule
            }  // container rules
    
            container rulesets {
              description
                "Configure a specified correlation ruleset";
              list ruleset {
                key "ruleset-name";
                description
                  "Configure a specified correlation ruleset";
                leaf ruleset-name {
                  type string {
                    length "1..32";
                  }
                  description
                    "Configure a specified correlation ruleset";
                }
    
                container rulenames {
                  description
                    "Specify rule name";
                  list rulename {
                    key "rulename-name";
                    description
                      "Specify rule name";
                    leaf rulename-name {
                      type string {
                        length "1..32";
                      }
                      description
                        "Specify rule name";
                    }
                  }  // list rulename
                }  // container rulenames
    
                container apply {
                  description "Apply ruleset";
                  container all-of-router {
                    presence
                      "Indicates a all-of-router node is configured.";
                    description
                      "Apply the rule to all of the router";
                  }  // container all-of-router
    
                  container locations {
                    description
                      "Apply rule to specified location";
                    list location {
                      key "location-name";
                      description
                        "Apply rule to specified location";
                      leaf location-name {
                        type xr:Node-id;
                        description
                          "Apply rule to specified location";
                      }
                    }  // list location
                  }  // container locations
    
                  container contexts {
                    description
                      "Apply rule to specified context";
                    list context {
                      key "context-name";
                      description
                        "Apply rule to specified context";
                      leaf context-name {
                        type xr:Cisco-ios-xr-string {
                          length "1..32";
                        }
                        description
                          "Apply rule to specified context";
                      }
                    }  // list context
                  }  // container contexts
                }  // container apply
              }  // list ruleset
            }  // container rulesets
          }  // container correlator
    
          container suppress {
            description
              "Configure properties for the event suppression";
            container rules {
              description
                "Configure a specified suppression rule";
              list rule {
                must
                  "alarms/alarm or all-alarms";
                key "rule-name";
                description
                  "Configure a specified suppression rule";
                leaf rule-name {
                  type string {
                    length "1..32";
                  }
                  description
                    "Configure a specified suppression rule";
                }
    
                container alarms {
                  description
                    "Specify alarm: Category/Group/Code combos";
                  list alarm {
                    key "message-category group-name message-code";
                    description
                      "Specify alarm: Category/Group/Code combos";
                    leaf message-category {
                      type string {
                        length "1..32";
                      }
                      description
                        "Specify alarm: Category/Group/Code combos";
                    }
    
                    leaf group-name {
                      type string {
                        length "1..32";
                      }
                      description
                        "Group name of suppressed message";
                    }
    
                    leaf message-code {
                      type string {
                        length "1..32";
                      }
                      description
                        "Message code of suppressed message";
                    }
                  }  // list alarm
                }  // container alarms
    
                container all-alarms {
                  presence
                    "Indicates a all-alarms node is configured.";
                  description
                    "All alarms of any Category/Group/Code combo";
                }  // container all-alarms
    
                container apply {
                  description
                    "Apply suppression rule";
                  container all-of-router {
                    presence
                      "Indicates a all-of-router node is configured.";
                    description
                      "Apply the rule to all of the router";
                  }  // container all-of-router
    
                  container source {
                    description
                      "Apply rule to specified source";
                    container locations {
                      description
                        "Apply rule to specified location";
                      list location {
                        key "location-name";
                        description
                          "Apply rule to specified location";
                        leaf location-name {
                          type xr:Node-id;
                          description
                            "Apply rule to specified location";
                        }
                      }  // list location
                    }  // container locations
                  }  // container source
                }  // container apply
              }  // list rule
            }  // container rules
          }  // container suppress
        }
      }  // module Cisco-IOS-XR-um-logging-correlator-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.