commit | 46592cfbb70b7a42f268bdc1b3c8747eb8c65b4d | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Tue May 11 18:12:55 2021 +0900 |
committer | Jian Li <pyguni@gmail.com> | Tue May 11 09:58:03 2021 +0000 |
tree | 1ada97f73d652995c1e6a8e6618038cbb0dbc699 | |
parent | 4673237526377a8750694efbffeabcf2b4fca049 [diff] [blame] |
Fix: support Container Network Addons (CNA) operator from kubevirt Change-Id: I1146db430e70b9e626e80b8e2164e514e736179b (cherry picked from commit fe3a90500f1d26dd1298d792f6601c7636ff25c2)
diff --git a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/util/KubevirtNetworkingUtil.java b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/util/KubevirtNetworkingUtil.java index e735282..bfb2916 100644 --- a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/util/KubevirtNetworkingUtil.java +++ b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/util/KubevirtNetworkingUtil.java
@@ -361,7 +361,7 @@ JSONObject object = networkStatus.getJSONObject(i); String name = object.getString(NAME); KubevirtNetwork network = networks.stream() - .filter(n -> (NETWORK_PREFIX + n.name()).equals(name)) + .filter(n -> (NETWORK_PREFIX + n.name()).equals(name) || (n.name()).equals(name)) .findAny().orElse(null); if (network != null) { String mac = object.getString(MAC);