New Yang model container for Neutron DHCP Port service. 52/60252/5
authorAchuth Maniyedath <achuth.m@altencalsoftlabs.com>
Wed, 12 Jul 2017 13:55:54 +0000 (19:25 +0530)
committerSam Hague <shague@redhat.com>
Sat, 15 Jul 2017 04:46:24 +0000 (04:46 +0000)
Updated spec with correct yang.

Change-Id: I8ee02c72db01dcb840683584a1bacc24f20448c9
Signed-off-by: Achuth Maniyedath <achuth.m@altencalsoftlabs.com>
docs/specs/neutron-port-for-dhcp-service.rst
vpnservice/dhcpservice/dhcpservice-api/src/main/yang/dhcpservice-api.yang

index f1f66a65d4ea975fadafb520758745250eb9117e..9dfaef78c04965b6b25acdabc19c4406f16234c0 100644 (file)
@@ -189,16 +189,16 @@ floating IPs and DHCP port.
    void removeArpResponderEntry(BigIneger dpId, String ingressInterfaceName,
        String ipAddress, String macAddress, Optional<Integer> lportTag);
 
-A new container is introduced to hold the network DHCP port information.
+A new container is introduced to hold the subnet DHCP port information.
 
 .. code-block:: none
    :caption: dhcpservice-api.yang
 
-        container network-dhcpport-data {
+        container subnet-dhcp-port-data {
             config true;
-            list network-to-dhcpport {
-                key "networkid";
-                leaf networkid {
+            list subnet-to-dhcp-port {
+                key "subnet-id";
+                leaf subnet-id {
                     type string;
                 }
                 leaf port-name {
@@ -213,44 +213,10 @@ A new container is introduced to hold the network DHCP port information.
             }
         }
 
-Add a new leaf node controller-dhcp-mode to dhcpservice-config.yang
 
-.. code-block:: none
-   :caption: dhcpservice-config.yang
-
-        container dhcpservice-config {
-            leaf controller-dhcp-enabled {
-                description "Enable the dhcpservice on the controller";
-                type boolean;
-                default false;
-            }
-            leaf dhcp-dynamic-allocation-pool-enabled {
-                description "Enable dynamic allocation pool on controller dhcpservice";
-                type boolean;
-                default false;
-            }
-            leaf controller-dhcp-mode {
-                description "Specify the controller DHCP mode to use Neutron port or Subnet gateway as DHCP server IP";
-                type enumeration {
-                    enum "use-odl-dhcp-neutron-port";
-                    enum "use-subnet-gateway-ip";
-                }
-                default "use-odl-neutron-dhcp-port";
-            }
-        }
-
-Introduce a new parameter in dhcpservice-config.xml to identify if DHCP Neutron port or
-Subnet gateway will act as DHCP server IP for responding to discover/renew requests. The
-default value for this parameter will be use-odl-neutron-dhcp-port.
-
-* controller-dhcp-mode
-
-When the above parameter is set to use-neutron-odl-dhcp-port and the ODL dhcp port is
-available its fixed IP will be used as the server IP to serve DHCP offer/renew requests
-for the virtual endpoints. If no DHCP port is available to controller we will flag an error
-to indicate DHCP service failure for the virtual endpoints on such subnets which are
-dhcp-enabled in openstack neutron. The subnet gateway IP address will continue to be used as
-the server IP when this parameter is set to use-subnet-gateway-ip.
+When no DHCP port is available for the subnet we will flag an error to indicate
+DHCP service failure  for virtual endpoints on such subnets which are dhcp-enabled
+in Openstack neutron.
 
 Assignee(s)
 -----------
index fd86e9ff7680e1bcc05c99ef3977e27387ffebe0..fb78839c782d5a8c289d226a4ecc560ce31e8523 100644 (file)
@@ -33,4 +33,17 @@ module dhcpservice-api {
             }
         }
     }
+
+    container subnet-dhcp-port-data {
+        config true;
+        description
+            "Container to hold DHCP Neutron Port information allocated for the Subnet";
+        list subnet-to-dhcp-port {
+            key "subnet-id";
+            leaf subnet-id { type string;}
+            leaf port-name { type string;}
+            leaf port-fixedip { type string;}
+            leaf port-macaddress { type string;}
+        }
+    }
 }
\ No newline at end of file