Fixed NAT in OFOverlay based on EIG
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / yang / ofoverlay.yang
index a6ce6373047d04d4d83ee9285b7c35e294d88cc5..5315e94938f160472d029215d1a95c998d92540e 100644 (file)
@@ -59,53 +59,24 @@ module ofoverlay {
                 }
             }
         }
-    }
-    /*
-    container of-overlay-operational {
-        description
-            "Operational parameters for the OpenFlow overlay renderer";
 
-        config false;
+        uses initial-values;
+    }
 
-        list data-plane-ordinal {
+    grouping initial-values {
+        description
+            "Initial value of table offset is set in config subsystem";
+        leaf gbp-ofoverlay-table-offset {
             description
-                "Map elements of the policy to the id used on the network";
-            key "tenant id";
-            leaf tenant {
-                description "The tenant for the policy element";
-                type gbp-common:tenant-id;
-            }
-            leaf id {
-                description "The ID of the item";
-                type gbp-common:unique-id;
-            }
-            leaf ordinal {
-                description "The 32-bit ordinal for the item";
-                type uint32;
-            }
+                "Used to offset pipeline to start at offset+1. Table0 is required.
+                This is to allow the enduser to configure where the GBP pipeline starts.";
+            type uint8;
         }
     }
-    */
+
     grouping endpoint-location {
         description
             "The location for this endpoint in the overlay network";
-
-        leaf location-type {
-            default internal;
-
-            type enumeration {
-                enum internal {
-                    description
-                    "The endpoint is located on a port that is part of
-                     the overlay network.  You must include the node
-                     ID and port number for this endpoint.";
-                }
-                enum external {
-                    description "This endpoint is not inside the overlay.";
-                }
-            }
-        }
-
         leaf node-id {
             description
                 "The OpenFlow switch for the endpoint. Must be included
@@ -114,7 +85,6 @@ module ofoverlay {
                  switch DPID cast to a long.";
             type inv:node-id;
         }
-
         leaf node-connector-id {
             description
                 "The node connector for the endpoint's OpenFlow port. The
@@ -134,7 +104,6 @@ module ofoverlay {
             description
                 "Unique identifier for interface";
         }
-
     }
 
     augment "/endpoint:endpoints/endpoint:endpoint" {
@@ -142,6 +111,11 @@ module ofoverlay {
         uses endpoint-location;
     }
 
+    augment "/endpoint:endpoints/endpoint:endpoint-l3" {
+        ext:augment-identifier "of-overlay-l3-context";
+        uses endpoint-location;
+    }
+
     augment "/endpoint:register-endpoint/endpoint:input" {
         ext:augment-identifier "of-overlay-context-input";
         uses endpoint-location;