this.mdsalUtils = mdsalUtils;
this.sfcUtils = sfcUtils;
- //this.setDependencies(null);
}
public void setSfcClassifierService(ISfcClassifierService sfcClassifierService) {
}
private boolean isSffOnBridge(Node bridgeNode, ServiceFunctionForwarder serviceFunctionForwarder) {
- String local_ip = "";
+ String localIp = "";
Ip ip = sfcUtils.getSffIp(serviceFunctionForwarder);
Node ovsdbNode = southbound.readOvsdbNode(bridgeNode);
if (ovsdbNode != null) {
OvsdbNodeAugmentation ovsdbNodeAugmentation = ovsdbNode.getAugmentation(OvsdbNodeAugmentation.class);
if (ovsdbNodeAugmentation != null && ovsdbNodeAugmentation.getOpenvswitchOtherConfigs() != null) {
- local_ip = southbound.getOtherConfig(ovsdbNode, OvsdbTables.OPENVSWITCH, TUNNEL_ENDPOINT_KEY);
+ localIp = southbound.getOtherConfig(ovsdbNode, OvsdbTables.OPENVSWITCH, TUNNEL_ENDPOINT_KEY);
}
}
- return local_ip.equals(String.valueOf(ip.getIp().getValue()));
+ return localIp.equals(String.valueOf(ip.getIp().getValue()));
}
private boolean isSfOnBridge(Node bridgeNode, ServiceFunction serviceFunction) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
- e.printStackTrace();
+ LOG.error("Interrupted while waiting for ofPort {}", portName, e);
}
}
}