Add dpdkvhost interface type 73/17073/1
authorEric Multanen <eric.w.multanen@intel.com>
Tue, 24 Mar 2015 11:12:08 +0000 (04:12 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Tue, 24 Mar 2015 11:26:51 +0000 (04:26 -0700)
Add the dpdkvhost interface type to the list of
OVSDB interface types in the SB model.

Change-Id: I29b1dee8edbaf6ed167d002102c97c19907c04bf
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
southbound/southbound-api/src/main/yang/ovsdb.yang
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundConstants.java

index ba41c99aafc1d371dfde031f31605f21946f4652..8af5a01fb1fc72278d1aa23ea2d8c00b27bec5f3 100755 (executable)
@@ -274,6 +274,11 @@ module ovsdb {
         base interface-type-base;
     }
 
+    identity interface-type-dpdkvhost {
+        description "Interface type for dpdkvhost interfaces";
+        base interface-type-base;
+    }
+
     grouping ovsdb-port-interface-attributes {
         leaf port-uuid {
             description "The unique identifier of the OVSDB port";
index 20c06066d7d28effc3838e61cd71f798f9885cdf..4362fe497b8746f054df2febfb62bd797865a787 100755 (executable)
@@ -22,6 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.re
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeLisp;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeDpdk;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeDpdkr;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeDpdkvhost;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeProtocolBase;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeProtocolOpenflow10;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeProtocolOpenflow11;
@@ -73,6 +74,7 @@ public class SouthboundConstants {
             .put("lisp", InterfaceTypeLisp.class)
             .put("dpdk", InterfaceTypeDpdk.class)
             .put("dpdkr", InterfaceTypeDpdkr.class)
+            .put("dpdkvhost", InterfaceTypeDpdkvhost.class)
             .build();
 
     public static final ImmutableBiMap<Class<? extends DatapathTypeBase>,String> DATAPATH_TYPE_MAP = new ImmutableBiMap.Builder<Class<? extends DatapathTypeBase>,String>()