do not call VTN APIs on ServicePort/ServiceNetwork with no relevant state

Change-Id: I17b110bc4d2d99c7b8be79b56ce05db44ef228c7
diff --git a/xos/synchronizer/steps/sync_vtn_service.py b/xos/synchronizer/steps/sync_vtn_service.py
index 7bdee17..112fc5a 100644
--- a/xos/synchronizer/steps/sync_vtn_service.py
+++ b/xos/synchronizer/steps/sync_vtn_service.py
@@ -125,6 +125,10 @@
             if (glo_saved_networks.get(network.id, None) != network.to_dict()):
                 (exists, url, method, req_func) = self.get_method("http://" + self.get_vtn_addr() + ":8181/onos/cordvtn/serviceNetworks", network.id)
 
+                if (network.type=="PRIVATE") and (not network.providerNetworks):
+                    logger.info("Skipping network %s because it has no relevant state" % network.id)
+                    continue
+
                 logger.info("%sing VTN API for network %s" % (method, network.id))
 
                 logger.info("URL: %s" % url)
@@ -165,6 +169,10 @@
             if not port.id:
                 continue
 
+            if (not port.vlan_id) and (not port.floating_address_pairs):
+                logger.info("Skipping port %s because it has no relevant state" % port.id)
+                continue
+
             valid_ids.append(port.id)
 
             if (glo_saved_ports.get(port.id, None) != port.to_dict()):