nat: fix issues found by pyang 91/11291/1
authorMarek Gradzki <[email protected]>
Thu, 22 Mar 2018 09:49:59 +0000 (10:49 +0100)
committerMarek Gradzki <[email protected]>
Thu, 22 Mar 2018 09:49:59 +0000 (10:49 +0100)
Change-Id: Ic4375e85684a035323499963172e59042b0f3dcf
Signed-off-by: Marek Gradzki <[email protected]>
nat/nat-api/src/main/yang/[email protected]
nat/nat-api/src/main/yang/[email protected]
nat/nat-api/src/main/yang/[email protected]
nat/nat-api/src/main/yang/[email protected]

index 421d039..d8791c3 100644 (file)
@@ -3,6 +3,15 @@ module interface-nat {
   namespace "urn:opendaylight:params:xml:ns:yang:interface:nat";
   prefix "ifc-nat";
 
+  import ietf-interfaces {
+    prefix "if";
+  }
+  import yang-ext {
+    prefix "ext";
+  }
+
+  description "Augmentations to interfaces model to connect interfaces with nat configuration.";
+
   revision "2017-08-16" {
     description "Added support for NAT64.";
   }
@@ -15,25 +24,13 @@ module interface-nat {
     description "Initial revision of interface-nat model.";
   }
 
-  import ietf-interfaces {
-    prefix "if";
-  }
-  import ietf-nat {
-    prefix "nat";
-  }
-  import yang-ext {
-    prefix "ext";
-  }
-
-  description "Augmentations to interfaces model to connect interfaces with nat configuration.";
-
   grouping interface-nat-vpp-feature-attributes {
     leaf post-routing {
       type boolean;
       default false;
       description
         "Indicates whether NAT translation should be applied after routing.
-         If true, nat_interface_add_del_output_feature message is used to enable NAT.
+         If true, nat_interface_anatdd_del_output_feature message is used to enable NAT.
          By default nat_interface_add_del_feature is used.";
       reference
         "https://git.fd.io/vpp/tree/src/plugins/nat/nat.api";
index dd17ed5..cb8bb83 100644 (file)
@@ -1,13 +1,7 @@
 module nat-context {
     yang-version 1;
     namespace "urn:honeycomb:params:xml:ns:yang:nat:context";
-    prefix "nc";
-
-    description "Context for nat mapping";
-
-    revision "2016-12-14" {
-        description "Initial revision.";
-    }
+    prefix "nat-ctx";
 
     import ietf-inet-types {
        prefix "inet";
@@ -21,6 +15,12 @@ module nat-context {
        prefix "ext";
     }
 
+    description "Context for nat mapping";
+
+    revision "2016-12-14" {
+        description "Initial revision.";
+    }
+
     grouping mapping-entry-context-attributes {
         container nat-mapping-entry-context {
             list nat-instance {
index 03773ab..0de8afc 100644 (file)
@@ -1,11 +1,7 @@
 module subinterface-nat {
   yang-version 1;
   namespace "urn:opendaylight:params:xml:ns:yang:subinterface:nat";
-  prefix "ifc-nat";
-
-  revision "2017-06-15" {
-    description "Initial revision of subinterface-nat model";
-  }
+  prefix "sub-ifc-nat";
 
   import ietf-interfaces {
     prefix "if";
@@ -22,6 +18,10 @@ module subinterface-nat {
 
   description "Augmentations to subinterfaces model to connect subinterfaces with nat configuration";
 
+  revision "2017-06-15" {
+    description "Initial revision of subinterface-nat model";
+  }
+
   augment  /if:interfaces/if:interface/vpp-vlan:sub-interfaces/vpp-vlan:sub-interface {
     ext:augment-identifier "nat-subinterface-augmentation";
 
index e085c24..b0f7ea3 100644 (file)
@@ -3,10 +3,6 @@ module vpp-nat {
   namespace "urn:opendaylight:params:xml:ns:yang:vpp:nat";
   prefix "vpp-nat";
 
-  revision "2017-08-04" {
-    description "Initial revision of vpp-nat model.";
-  }
-
   import ietf-nat {
     prefix "nat";
   }
@@ -16,6 +12,10 @@ module vpp-nat {
 
   description "Augmentations to ietf-nat model providing vpp specific attributes.";
 
+  revision "2017-08-04" {
+    description "Initial revision of vpp-nat model.";
+  }
+
   typedef nat-pool-type {
     type enumeration {
       enum "nat44";