SEBA-497 delayering, Makefile, and tox for fabric-synchronizer
Change-Id: I916f4b632019dddceae5a6f024a0b1c64d8188d8
diff --git a/xos/synchronizer/steps/sync_fabric_port.py b/xos/synchronizer/steps/sync_fabric_port.py
index 1ab0f52..4f0c914 100644
--- a/xos/synchronizer/steps/sync_fabric_port.py
+++ b/xos/synchronizer/steps/sync_fabric_port.py
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+#from __future__ import absolute_import
+
import requests
import urllib
from requests.auth import HTTPBasicAuth
@@ -117,15 +119,21 @@
def delete_record(self, model):
if model.leaf_model_name == "PortInterface":
log.info("Received update for PortInterface", port=model.port.portId, interface=model.name)
- log.info("Removing port interface %s from port %s/%s in onos-fabric" % (model.name, model.port.switch.ofId, model.port.portId))
+ log.info("Removing port interface %s from port %s/%s in onos-fabric" %
+ (model.name, model.port.switch.ofId, model.port.portId))
# resync the existing interfaces
return self.sync_record(model.port)
if model.leaf_model_name == "FabricIpAddress":
# TODO add unit tests
- log.info("Received update for FabricIpAddress", port=model.interface.port.portId, interface=model.interface.name, ip=model.ip)
- log.info("Removing IP %s from interface %s, on port %s/%s in onos-fabric" % (model.ip, model.interface.name, model.interface.port.switch.ofId, model.interface.port.portId))
+ log.info(
+ "Received update for FabricIpAddress",
+ port=model.interface.port.portId,
+ interface=model.interface.name,
+ ip=model.ip)
+ log.info("Removing IP %s from interface %s, on port %s/%s in onos-fabric" %
+ (model.ip, model.interface.name, model.interface.port.switch.ofId, model.interface.port.portId))
# resync the existing interfaces
return self.sync_record(model.interface.port)