Interface IetfAccessControlListData

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.DataRoot

    @Generated("mdsal-binding-generator")
    public interface IetfAccessControlListData
    extends org.opendaylight.yangtools.yang.binding.DataRoot
    This YANG module defines a component that describing the configuration of Control Lists (ACLs). Copyright (c) 2016 IETF Trust and the persons identified as the document authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info). This version of this YANG module is of RFC XXXX; see the RFC itself for full legal notices.

    This class represents the following YANG schema fragment defined in module ietf-access-control-list

     module ietf-access-control-list {
       yang-version 1.1;
       namespace urn:ietf:params:xml:ns:yang:ietf-access-control-list;
       prefix acl;
       import ietf-yang-types {
         prefix yang;
         revision-date 2013-07-15;
       }
       import ietf-packet-fields {
         prefix packet-fields;
         revision-date 2016-02-18;
       }
       revision 2016-02-18 {
       }
       identity acl-base {
       }
       identity ipv4-acl {
         base acl-base;
       }
       identity ipv6-acl {
         base acl-base;
       }
       identity eth-acl {
         base acl-base;
       }
       typedef acl-type {
         type identityref {
           base acl-base;
         }
       }
       typedef access-control-list-ref {
         type leafref {
           path /access-lists/acl/acl-name;
         }
       }
       container access-lists {
         list acl {
           key "acl-type acl-name";
           leaf acl-name {
             type string;
           }
           leaf acl-type {
             type acl-type;
           }
           container acl-oper-data {
             config false;
           }
           container access-list-entries {
             list ace {
               key rule-name;
               ordered-by user;
               leaf rule-name {
                 type string;
               }
               container matches {
                 choice ace-type {
                   case ace-ip {
                     choice ace-ip-version {
                       case ace-ipv4 {
                         uses packet-fields:acl-ipv4-header-fields;
                       }
                       case ace-ipv6 {
                         uses packet-fields:acl-ipv6-header-fields;
                       }
                     }
                     uses packet-fields:acl-ip-header-fields;
                   }
                   case ace-eth {
                     uses packet-fields:acl-eth-header-fields;
                   }
                 }
                 uses packet-fields:metadata;
               }
               container actions {
                 choice packet-handling {
                   default deny;
                   case deny {
                     leaf deny {
                       type empty;
                     }
                   }
                   case permit {
                     leaf permit {
                       type empty;
                     }
                   }
                 }
               }
               container ace-oper-data {
                 config false;
                 leaf match-counter {
                   type yang:counter64;
                 }
               }
             }
           }
         }
       }
     }
     
    • Method Detail

      • getAccessLists

        AccessLists getAccessLists()
        Return accessLists, or null if it is not present.
             
                 This is a top level container for Access Control Lists. It can have one or more
                 Access Control Lists.
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.AccessLists accessLists, or null if it is not present.