commit | c3e0c600cce48efab8827c5e5260a491d7ea7a73 | [log] [tgz] |
---|---|---|
author | Daniel Park <dan.mcpark84@gmail.com> | Thu Aug 30 21:27:25 2018 +0900 |
committer | Jian Li <pyguni@gmail.com> | Fri Aug 31 02:30:58 2018 +0000 |
tree | 618090f86f3c0295436f8a7eef97e1acad7edfa2 | |
parent | 7040b698e81a6b186268af89b44462cd2912ab33 [diff] |
Fixes to deal with unsupported vendor type interface in OpenstackSwitchingDirectPortProvider Change-Id: Ibc5b13c0ca93c0cb5ff58070d948159e0beabf9c
diff --git a/apps/openstacknetworking/app/src/main/java/org/onosproject/openstacknetworking/impl/OpenStackSwitchingDirectPortProvider.java b/apps/openstacknetworking/app/src/main/java/org/onosproject/openstacknetworking/impl/OpenStackSwitchingDirectPortProvider.java index 7a8bf4b..75e6647 100644 --- a/apps/openstacknetworking/app/src/main/java/org/onosproject/openstacknetworking/impl/OpenStackSwitchingDirectPortProvider.java +++ b/apps/openstacknetworking/app/src/main/java/org/onosproject/openstacknetworking/impl/OpenStackSwitchingDirectPortProvider.java
@@ -289,6 +289,9 @@ String intfName = OpenstackNetworkingUtil.getIntfNameFromPciAddress(port); if (intfName == null) { log.error("Failed to retrieve interface name from a port {}", port.getId()); + } else if (intfName.equals(UNSUPPORTED_VENDOR)) { + log.warn("Failed to retrieve interface name from a port {} because of unsupported ovs-based sr-iov"); + return; } if (!hasIntfAleadyInDevice(node.intgBridge(), intfName, deviceService)) {