acl: fix issues found by pyang 54/11254/1
authorMarek Gradzki <[email protected]>
Wed, 21 Mar 2018 13:14:46 +0000 (14:14 +0100)
committerMarek Gradzki <[email protected]>
Wed, 21 Mar 2018 13:15:03 +0000 (14:15 +0100)
Fixes order of import statements, removes unused imports, etc.

Change-Id: I53238e6b8bd217964b8951215b580f59e254bb9e
Signed-off-by: Marek Gradzki <[email protected]>
acl/acl-api/src/main/yang/[email protected]
acl/acl-api/src/main/yang/[email protected]
acl/acl-api/src/main/yang/[email protected]

index aab82e5..238bee1 100644 (file)
@@ -3,23 +3,13 @@ module interface-acl {
   namespace "urn:opendaylight:params:xml:ns:yang:interface:acl";
   prefix "ifc-acl";
 
-  revision "2016-12-14" {
-    description "Initial revision of interface-acl model";
-  }
-
   import ietf-interfaces {
     prefix "if";
   }
+
   import yang-ext {
     prefix "ext";
   }
-  import ietf-yang-types {
-    prefix "yang";
-  }
-
-  import vpp-acl {
-    prefix "vpp-acl";
-  }
 
   import ietf-access-control-list {
     prefix "acl";
@@ -27,9 +17,13 @@ module interface-acl {
 
   description "Augmentations to interfaces model to apply acls exposed by acl plugin of vpp";
 
+  revision "2016-12-14" {
+    description "Initial revision of interface-acl model";
+  }
+
   grouping vpp-acls-base-attributes  {
     description
-      "List of ACLs of vpp-acl type"; // TODO express constraint in the model if possible
+      "List of ACLs of vpp-acl type"; // TODO(HC2VPP-201): express constraint in the model if possible
     list vpp-acls {
       key "type name";
       ordered-by user;
@@ -38,6 +32,7 @@ module interface-acl {
         type acl:acl-type;
       }
 
+      // FIXME(HC2VPP-290): define leafref in interface-acl or bump ietf-access-control-list
       leaf name {
         type acl:access-control-list-ref;
       }
@@ -47,7 +42,7 @@ module interface-acl {
   grouping vpp-macip-acls-base-attributes  {
     container vpp-macip-acl {
       description
-        "ACL of vpp-macip-acl type"; // TODO express constraint in the model if possible
+        "ACL of vpp-macip-acl type"; // TODO(HC2VPP-201): express constraint in the model if possible
 
       leaf type {
         type acl:acl-type;
index fde7f63..825f280 100644 (file)
@@ -1,13 +1,7 @@
 module vpp-acl-context {
     yang-version 1;
     namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl:context";
-    prefix "nc";
-
-    description "Context for vpp-acl assignment mapping";
-
-    revision "2017-01-04" {
-        description "Initial revision.";
-    }
+    prefix "vac";
 
     import naming-context {
         prefix "nc";
@@ -17,6 +11,12 @@ module vpp-acl-context {
         prefix "ext";
     }
 
+    description "Context for vpp-acl assignment mapping";
+
+    revision "2017-01-04" {
+        description "Initial revision.";
+    }
+
     grouping vpp-acl-context-attributes {
         container vpp-acl-mappings {
             list vpp-acl-context {
index dfc1d89..9103768 100644 (file)
@@ -3,16 +3,6 @@ module vpp-acl {
   namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl";
   prefix "vpp-acl";
 
-  revision "2017-06-15" {
-    description
-      "Renamed stateful/permit leaf to permit-and-reflect";
-  }
-
-  revision "2016-12-14" {
-    description
-      "Initial revision of vpp-acl model.";
-  }
-
   import ietf-access-control-list {
     prefix "acl";
   }
@@ -33,6 +23,16 @@ module vpp-acl {
     prefix yang;
   }
 
+  revision "2017-06-15" {
+    description
+      "Renamed stateful/permit leaf to permit-and-reflect";
+  }
+
+  revision "2016-12-14" {
+    description
+      "Initial revision of vpp-acl model.";
+  }
+
   augment /acl:access-lists/acl:acl/acl:access-list-entries/acl:ace/acl:actions/acl:packet-handling {
     ext:augment-identifier "stateful-acl-action-augmentation";
     when "../acl:matches/acl:ace-type = 'vpp-acl:vpp-acl'";