commit | 256f2c1338536a9b42889c35b00359a0b0776d25 | [log] [tgz] |
---|---|---|
author | jaegonkim <jaegon77.kim@samsung.com> | Fri May 26 00:03:42 2017 +0900 |
committer | Andrea Campanella <andrea@onlab.us> | Thu Jun 08 08:13:04 2017 +0000 |
tree | 0da0e2fc43c0f8a566fac11470e3a8d43f185735 | |
parent | 10517fde1c3158a1c70e3138dcb3e88633db5e72 [diff] [blame] |
[ONOS-6519] Supporting OVS DPDK, and PICA8 OVS interface creation & MTU setting Change-Id: Icee3f9c6cf430d952acc7bfebd82cfa6d94b0e63
diff --git a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java index 2ed28f7..0ed4663 100644 --- a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java +++ b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java
@@ -1025,7 +1025,16 @@ // insert an interface Interface intf = (Interface) TableGenerator.createTable(dbSchema, OvsdbTable.INTERFACE); intf.setName(ovsdbIface.name()); + intf.setType(ovsdbIface.typeToString()); + + if (ovsdbIface.mtu().isPresent()) { + Set<Long> mtuSet = Sets.newConcurrentHashSet(); + mtuSet.add(ovsdbIface.mtu().get()); + intf.setMtu(mtuSet); + intf.setMtuRequest(mtuSet); + } + intf.setOptions(ovsdbIface.options()); Insert intfInsert = new Insert(dbSchema.getTableSchema(INTERFACE), INTERFACE, intf.getRow()); operations.add(intfInsert);