Bug 4807 fix destination type in subnets yang 51/31551/2
authorVishal Thapar <vishal.thapar@ericsson.com>
Thu, 17 Dec 2015 21:15:05 +0000 (02:45 +0530)
committerVishal Thapar <vishal.thapar@ericsson.com>
Fri, 18 Dec 2015 06:03:05 +0000 (11:33 +0530)
host-routes attribute of subnets has destination
field defined as type inet:ip-address. As per Neutron
APIv2 spec it should be of type CIDR

Fix is to change it to ip-prefix

Change-Id: I0c8653b2e24eac06d98c5afd679a0a70d6669e3b
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
model/src/main/yang/neutron-subnets.yang

index 399c47c9eabf24e5c4314708f7601afd5b960fe5..bc4f53ad7d014fa2a467345d97c820ac1e3b51b9 100644 (file)
@@ -91,7 +91,8 @@ module neutron-subnets {
                         (not including local subnet route).";
             key destination;
             leaf destination {
-                type inet:ip-address;
+                description "Specifies a destination in CIDR format";
+                type inet:ip-prefix;
             }
             leaf nexthop {
                 type inet:ip-address;