commit | 913703c1e5974f8326af84f135aef0b43d6503ed | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Thu Jun 20 22:47:32 2019 +0900 |
committer | Jian Li <pyguni@gmail.com> | Wed Mar 04 08:41:52 2020 +0000 |
tree | 8556e0497860cebebe073a8e43848a903c7f01a6 | |
parent | d5fed166b87565772c2ce97be14b3c154baa9c17 [diff] |
Add kubernetes state and rule synchronization REST API Change-Id: I636ebdcf2f97a4d447397159bddaf6d395437b2a
diff --git a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sManagementWebResource.java b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sManagementWebResource.java index 5cef329..5d23fab 100644 --- a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sManagementWebResource.java +++ b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sManagementWebResource.java
@@ -53,6 +53,13 @@ public class K8sManagementWebResource extends AbstractWebResource { private final Logger log = LoggerFactory.getLogger(getClass()); + private static final String PORT_ID = "portId"; + private static final String DEVICE_ID = "deviceId"; + private static final String PORT_NUMBER = "portNumber"; + private static final String IP_ADDRESS = "ipAddress"; + private static final String MAC_ADDRESS = "macAddress"; + private static final String NETWORK_ID = "networkId"; + private static final long SLEEP_MIDDLE_MS = 3000; // we wait 3s private static final long TIMEOUT_MS = 10000; // we wait 10s
diff --git a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sNetworkingWebApplication.java b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sNetworkingWebApplication.java index 228d371..0470dc4 100644 --- a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sNetworkingWebApplication.java +++ b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/web/K8sNetworkingWebApplication.java
@@ -28,7 +28,8 @@ return getClasses( K8sNetworkWebResource.class, K8sPortWebResource.class, - K8sIpamWebResource.class + K8sIpamWebResource.class, + K8sManagementWebResource.class ); } }