Cisco-IOS-XR-ipv4-acl-oper-sub1

This submodule contains a collection of YANG definitions for Cisco IOS-XR ipv4-acl package operational data. Copyright (c) 2013...

  • Version: 2020-11-13

    Cisco-IOS-XR-ipv4-acl-oper-sub1@2020-11-13


    
      submodule Cisco-IOS-XR-ipv4-acl-oper-sub1 {
    
        yang-version 1;
    
        belongs-to Cisco-IOS-XR-ipv4-acl-oper {
            prefix Cisco-IOS-XR-ipv4-acl-oper;
        }
    
        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 submodule contains a collection of YANG definitions
         for Cisco IOS-XR ipv4-acl package operational data.
         
         Copyright (c) 2013-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-11-13" {
          description
            "Adding policer and priority.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2019-02-12" {
          description "Fixing CSCvn61905.";
        }
    
        revision "2017-05-01" {
          description
            "Fixing backward compatibility error in module.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.1.0";
        semver:module-version "1.0.1";
    
        typedef Acl-priority {
          type enumeration {
            enum "low" {
              value 0;
              description "low";
            }
            enum "medium" {
              value 1;
              description "medium";
            }
            enum "high" {
              value 2;
              description "high";
            }
            enum "critical" {
              value 3;
              description "critical";
            }
            enum "invalid" {
              value 4;
              description "invalid";
            }
            enum "acl-priority-unspec" {
              value 255;
              description "unspec";
            }
          }
          description "Acl priority";
        }
    
        typedef Bag-acl-rate-unit {
          type enumeration {
            enum "pps" {
              value 0;
              description "pps";
            }
            enum "bps" {
              value 1;
              description "bps";
            }
            enum "kbps" {
              value 2;
              description "kbps";
            }
            enum "mbps" {
              value 3;
              description "mbps";
            }
            enum "gbps" {
              value 4;
              description "gbps";
            }
            enum "unit-max" {
              value 5;
              description "unit max";
            }
          }
          description "Bag acl rate unit";
        }
    
        typedef Acl-frag-offset-operator {
          type Acl-port-operator;
          description "Acl frag offset operator";
        }
    
        typedef Bag-acl-nh-at-status {
          type enumeration {
            enum "unknown" {
              value 0;
              description "AT State Unknown";
            }
            enum "up" {
              value 1;
              description "AT State UP";
            }
            enum "down" {
              value 2;
              description "AT State DOWN";
            }
            enum "not-present" {
              value 3;
              description "AT State Not Present";
            }
            enum "max" {
              value 4;
              description "invalid status";
            }
          }
          description "Bag acl nh at status";
        }
    
        typedef Bag-acl-nh-status {
          type enumeration {
            enum "not-present" {
              value 0;
              description "State Not Present";
            }
            enum "unknown" {
              value 1;
              description "State Unknown";
            }
            enum "down" {
              value 2;
              description "State DOWN";
            }
            enum "up" {
              value 3;
              description "State UP";
            }
            enum "max" {
              value 4;
              description "invalid status";
            }
          }
          description "Bag acl nh status";
        }
    
        typedef Bag-acl-nh {
          type enumeration {
            enum "nexthop-none" {
              value 0;
              description "Next Hop None";
            }
            enum "nexthop-default" {
              value 1;
              description "Nexthop Default";
            }
            enum "nexthop" {
              value 2;
              description "Nexthop";
            }
          }
          description "Bag acl nh";
        }
    
        typedef Acl-ttl-operator {
          type Acl-port-operator;
          description "Acl ttl operator";
        }
    
        typedef Acl-plen-operator {
          type Acl-port-operator;
          description "Acl plen operator";
        }
    
        typedef Acl-tcpflags-operator {
          type enumeration {
            enum "match-none" {
              value 0;
              description "Match None";
            }
            enum "match-all" {
              value 1;
              description "Match All";
            }
            enum "match-any-old" {
              value 2;
              description "Match any old";
            }
            enum "match-any" {
              value 3;
              description "Match any";
            }
          }
          description "Acl tcpflags operator";
        }
    
        typedef Acl-log {
          type enumeration {
            enum "log-none" {
              value 0;
              description "Log None";
            }
            enum "log" {
              value 1;
              description "Log Regular";
            }
            enum "log-input" {
              value 2;
              description "Log Input";
            }
          }
          description "Acl log";
        }
    
        typedef Acl-port-operator {
          type enumeration {
            enum "none" {
              value 0;
              description "None";
            }
            enum "eq" {
              value 1;
              description "Equal";
            }
            enum "gt" {
              value 2;
              description "Greater than";
            }
            enum "lt" {
              value 3;
              description "Less than";
            }
            enum "neq" {
              value 4;
              description "Not Equal";
            }
            enum "range" {
              value 5;
              description "Range";
            }
            enum "onebyte" {
              value 8;
              description "One Byte";
            }
            enum "twobytes" {
              value 9;
              description "Two Bytes";
            }
          }
          description "Acl port operator";
        }
    
        typedef Acl-action {
          type enumeration {
            enum "deny" {
              value 0;
              description "Deny";
            }
            enum "permit" {
              value 1;
              description "Permit";
            }
            enum "encrypt" {
              value 2;
              description "Encrypt";
            }
            enum "bypass" {
              value 3;
              description "Bypass";
            }
            enum "fallthrough" {
              value 4;
              description "Fallthrough";
            }
            enum "invalid" {
              value 5;
              description "Invalid";
            }
          }
          description "Acl action";
        }
    
        typedef Acl-ace1 {
          type enumeration {
            enum "normal" {
              value 0;
              description "This is Normal ACE";
            }
            enum "remark" {
              value 1;
              description "This is Remark ACE";
            }
            enum "abf" {
              value 2;
              description "This is ABF ACE";
            }
          }
          description "ACE Types";
        }
    
        typedef Acl-ace {
          type Acl-ace1;
          description "ACE Types";
        }
    
        grouping IPV4-ACL-EDM-OOR-DETAIL {
          description "Oor deatil config BAG";
          leaf default-max-ac-ls {
            type uint32;
            description
              "default max configurable acls";
          }
    
          leaf default-max-ac-es {
            type uint32;
            description
              "default max configurable aces";
          }
    
          leaf current-configured-ac-ls {
            type uint32;
            description
              "Current configured acls";
          }
    
          leaf current-configured-ac-es {
            type uint32;
            description
              "Current configured aces";
          }
    
          leaf current-max-configurable-ac-ls {
            type uint32;
            description
              "Current max configurable acls";
          }
    
          leaf current-max-configurable-ac-es {
            type uint32;
            description
              "Current max configurable aces";
          }
    
          leaf max-configurable-ac-ls {
            type uint32;
            description "max configurable acls";
          }
    
          leaf max-configurable-ac-es {
            type uint32;
            description "max configurable aces";
          }
        }  // grouping IPV4-ACL-EDM-OOR-DETAIL
    
        grouping IPV4-ACL-BAG-OBJGRP-INFO {
          description "Objgrp info structure";
          leaf obj-grp-name {
            type string {
              length "0..64";
            }
            description "Object-group name";
          }
    
          leaf obj-grp-type {
            type uint32;
            description "Object-group Type";
          }
        }  // grouping IPV4-ACL-BAG-OBJGRP-INFO
    
        grouping IPV4-ACL-EDM-OBJGRP {
          description "Objgrp BAG";
          list obj-grp-info {
            description "Object-group info";
            uses IPV4-ACL-BAG-OBJGRP-INFO;
          }  // list obj-grp-info
        }  // grouping IPV4-ACL-EDM-OBJGRP
    
        grouping ACL-POLICE-ACE {
          description "ACL POLICE ACE";
          leaf police-value {
            type uint32;
            description "Police value";
          }
    
          leaf police-unit {
            type Bag-acl-rate-unit;
            description "Police unit";
          }
    
          leaf police-peak-value {
            type uint32;
            description "Police peak value";
          }
    
          leaf police-peak-unit {
            type Bag-acl-rate-unit;
            description "Police peak unit";
          }
        }  // grouping ACL-POLICE-ACE
    
        grouping ACL-UDF-ACE {
          description "ACL UDF ACE";
          leaf udf-name {
            type string {
              length "0..17";
            }
            description "UDF Name";
          }
    
          leaf udf-value {
            type uint32;
            description "UDF Value";
          }
    
          leaf udf-mask {
            type uint32;
            description "UDF Mask";
          }
        }  // grouping ACL-UDF-ACE
    
        grouping IPV4-ACL-BAG-HW-NH-INFO {
          description "HW_NH_Info structure";
          leaf next-hop {
            type uint32;
            description "The Next Hop";
          }
    
          leaf type {
            type Bag-acl-nh;
            description "the next-hop type";
          }
    
          leaf vrf-name {
            type string {
              length "0..32";
            }
            description "VRF name";
          }
        }  // grouping IPV4-ACL-BAG-HW-NH-INFO
    
        grouping IPV4-ACL-BAG-NH-INFO {
          description "NH_Info structure";
          leaf next-hop {
            type inet:ipv4-address;
            description "The next hop";
          }
    
          leaf track-name {
            type string;
            description "Track name";
          }
    
          leaf status {
            type Bag-acl-nh-status;
            description "The next hop status";
          }
    
          leaf at-status {
            type Bag-acl-nh-at-status;
            description "The next hop at status";
          }
    
          leaf is-acl-next-hop-exist {
            type boolean;
            description "The nexthop exist";
          }
        }  // grouping IPV4-ACL-BAG-NH-INFO
    
        grouping IPV4-ACL-EDM-ACE {
          description "ACLE bag";
          container hw-next-hop-info {
            description "HW Next hop info";
            uses IPV4-ACL-BAG-HW-NH-INFO;
          }  // container hw-next-hop-info
    
          container police {
            description "Police";
            uses ACL-POLICE-ACE;
          }  // container police
    
          leaf item-type {
            type Acl-ace;
            description "ACE type (acl, remark)";
          }
    
          leaf sequence {
            type uint32;
            description "ACLE sequence number";
          }
    
          leaf grant {
            type Acl-action;
            description "Permit/deny";
          }
    
          leaf protocol-operator {
            type uint16;
            description "IPv4 protocol operator";
          }
    
          leaf protocol {
            type uint16;
            description "IPv4 protocol type";
          }
    
          leaf protocol2 {
            type uint16;
            description "IPv4 protocol 2";
          }
    
          leaf source-address {
            type inet:ipv4-address;
            description "Source address";
          }
    
          leaf source-address-mask {
            type inet:ipv4-address;
            description "Source mask";
          }
    
          leaf destination-address {
            type inet:ipv4-address;
            description "Destination address";
          }
    
          leaf destination-address-mask {
            type inet:ipv4-address;
            description "Destination mask";
          }
    
          leaf source-operator {
            type Acl-port-operator;
            description "Source operator";
          }
    
          leaf source-port1 {
            type uint16;
            description "Source port 1";
          }
    
          leaf source-port2 {
            type uint16;
            description "Source port 2";
          }
    
          leaf sorce-operator {
            type Acl-port-operator;
            description
              "Deprecated by Source operator";
          }
    
          leaf sorce-port1 {
            type uint16;
            description
              "Deprecated by SourcePort1";
          }
    
          leaf sorce-port2 {
            type uint16;
            description
              "Deprecated by SourcePort2";
          }
    
          leaf destination-operator {
            type Acl-port-operator;
            description "Destination operator";
          }
    
          leaf destination-port1 {
            type uint16;
            description "Destination port 1";
          }
    
          leaf destination-port2 {
            type uint16;
            description "Destination port 2";
          }
    
          leaf log-option {
            type Acl-log;
            description "Log option";
          }
    
          leaf counter-name {
            type string;
            description "Counter name";
          }
    
          leaf capture {
            type boolean;
            description
              "Capture option, TRUE if enabled";
          }
    
          leaf dscp-present {
            type boolean;
            description "DSCP present";
          }
    
          leaf dscp {
            type uint8;
            description
              "DSCP or DSCP range start";
          }
    
          leaf dscp2 {
            type uint8;
            description "DSCP Range End";
          }
    
          leaf dscp-operator {
            type uint8;
            description "DSCP Operator";
          }
    
          leaf precedence-present {
            type boolean;
            description "Precedence present";
          }
    
          leaf precedence {
            type uint8;
            description "Precedence";
          }
    
          leaf tcp-flags-operator {
            type Acl-tcpflags-operator;
            description "TCP flags operator";
          }
    
          leaf tcp-flags {
            type uint8;
            description "TCP flags";
          }
    
          leaf tcp-flags-mask {
            type uint8;
            description "TCP flags mask";
          }
    
          leaf fragments {
            type uint8;
            description "Fragments";
          }
    
          leaf packet-length-operator {
            type Acl-plen-operator;
            description "Packet length operator";
          }
    
          leaf packet-length1 {
            type uint16;
            description "Packet length 1";
          }
    
          leaf packet-length2 {
            type uint16;
            description "Packet length 2";
          }
    
          leaf ttl-operator {
            type Acl-ttl-operator;
            description "TTL operator";
          }
    
          leaf ttl1 {
            type uint16;
            description "TTL 1";
          }
    
          leaf ttl2 {
            type uint16;
            description "TTL 2";
          }
    
          leaf no-stats {
            type boolean;
            description "No stats";
          }
    
          leaf hits {
            type uint64;
            description "Number of hits";
          }
    
          leaf police-hits {
            type uint64;
            description "Police stats";
          }
    
          leaf is-icmp-off {
            type boolean;
            description "True if ICMP off";
          }
    
          leaf qos-group {
            type uint16;
            description "Qos group number";
          }
    
          leaf next-hop-type {
            type Bag-acl-nh;
            description "Next hop type";
          }
    
          leaf remark {
            type string;
            description "Remark String";
          }
    
          leaf dynamic {
            type boolean;
            description "Is dynamic ACE";
          }
    
          leaf source-prefix-group {
            type string;
            description
              "Source prefix object-group";
          }
    
          leaf destination-prefix-group {
            type string;
            description
              "Destination prefix object-group";
          }
    
          leaf source-port-group {
            type string;
            description
              "Source port object-group";
          }
    
          leaf destination-port-group {
            type string;
            description
              "Destination port object-group";
          }
    
          leaf acl-name {
            type string;
            description "ACL Name";
          }
    
          leaf sequence-str {
            type string;
            description "Sequence String";
          }
    
          leaf fragment-offset-operator {
            type Acl-frag-offset-operator;
            description
              "Fragment offset operator";
          }
    
          leaf fragment-offset1 {
            type uint16;
            description "Fragment offset 1";
          }
    
          leaf fragment-offset2 {
            type uint16;
            description "Fragment offset 2";
          }
    
          leaf set-ttl {
            type uint16;
            description "SET TTL";
          }
    
          leaf fragment-flags {
            type uint8;
            description "Fragment flags";
          }
    
          leaf priority {
            type Acl-priority;
            description "Priority";
          }
    
          list next-hop-info {
            max-elements 3;
            description "Next hop info";
            uses IPV4-ACL-BAG-NH-INFO;
          }  // list next-hop-info
    
          list udf {
            description "UDF BAG";
            uses ACL-UDF-ACE;
          }  // list udf
        }  // grouping IPV4-ACL-EDM-ACE
    
        grouping IPV4-PFX-EDM-ACE {
          description "Prefix list entry BAG";
          leaf item-type {
            type Acl-ace;
            description
              "ACE type (prefix, remark)";
          }
    
          leaf sequence {
            type uint32;
            description "ACLE sequence number";
          }
    
          leaf grant {
            type Acl-action;
            description
              "Grant value permit/deny ";
          }
    
          leaf prefix {
            type inet:ipv4-address;
            description "Prefix";
          }
    
          leaf prefix-length {
            type uint32;
            description "Prefix length ";
          }
    
          leaf operator {
            type Acl-port-operator;
            description "Port Operator";
          }
    
          leaf minimum-length {
            type uint32;
            description "Min length";
          }
    
          leaf maximum-length {
            type uint32;
            description "Maximum length";
          }
    
          leaf hits {
            type uint32;
            description "Number of hits";
          }
    
          leaf remark {
            type string;
            description "Remark String";
          }
    
          leaf acl-name {
            type string;
            description "ACL Name";
          }
        }  // grouping IPV4-PFX-EDM-ACE
      }  // submodule Cisco-IOS-XR-ipv4-acl-oper-sub1
    

© 2024 YumaWorks, Inc. All rights reserved.