Loading src/common/tools/descriptor/Tools.py +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ def split_links_by_type(links : List[Dict]) -> Dict[str, List[Dict]]: raise Exception(MSG.format(str(link))) link_type = LinkTypeEnum.Value(str_link_type) if link_type in {LinkTypeEnum.LINKTYPE_UNKNOWN, LinkTypeEnum.LINKTYPE_COPPER, LinkTypeEnum.LINKTYPE_RADIO}: if link_type in {LinkTypeEnum.LINKTYPE_UNKNOWN, LinkTypeEnum.LINKTYPE_COPPER, LinkTypeEnum.LINKTYPE_RADIO, LinkTypeEnum.LINKTYPE_MANAGEMENT}: typed_links['normal'].append(link) elif link_type in {LinkTypeEnum.LINKTYPE_FIBER}: typed_links['optical'].append(link) Loading src/service/service/service_handlers/p4_fabric_tna_acl/p4_fabric_tna_acl_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} ACL rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -214,7 +215,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert ACL rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete ACL rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -225,6 +226,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} ACL rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading src/service/service/service_handlers/p4_fabric_tna_int/p4_fabric_tna_int_service_handler.py +6 −4 Original line number Diff line number Diff line Loading @@ -126,6 +126,7 @@ class P4FabricINTServiceHandler(_ServiceHandler): # You should no longer visit this device again visited.add(device.name) if applied_rules > 0: LOGGER.info("Installed {}/{} INT rules on device {}".format( applied_rules, actual_rules, device.name)) Loading Loading @@ -191,6 +192,7 @@ class P4FabricINTServiceHandler(_ServiceHandler): # You should no longer visit this device again visited.add(device.name) if applied_rules > 0: LOGGER.info("Deleted {}/{} INT rules from device {}".format( applied_rules, actual_rules, device.name)) Loading src/service/service/service_handlers/p4_fabric_tna_l2_simple/p4_fabric_tna_l2_simple_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -131,6 +131,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} L2 rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -197,7 +198,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert L2 rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete L2 rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -208,6 +209,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} L2 rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading src/service/service/service_handlers/p4_fabric_tna_l3/p4_fabric_tna_l3_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} L3 rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -195,7 +196,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert L3 rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete L3 rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -206,6 +207,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} L3 rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading
src/common/tools/descriptor/Tools.py +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ def split_links_by_type(links : List[Dict]) -> Dict[str, List[Dict]]: raise Exception(MSG.format(str(link))) link_type = LinkTypeEnum.Value(str_link_type) if link_type in {LinkTypeEnum.LINKTYPE_UNKNOWN, LinkTypeEnum.LINKTYPE_COPPER, LinkTypeEnum.LINKTYPE_RADIO}: if link_type in {LinkTypeEnum.LINKTYPE_UNKNOWN, LinkTypeEnum.LINKTYPE_COPPER, LinkTypeEnum.LINKTYPE_RADIO, LinkTypeEnum.LINKTYPE_MANAGEMENT}: typed_links['normal'].append(link) elif link_type in {LinkTypeEnum.LINKTYPE_FIBER}: typed_links['optical'].append(link) Loading
src/service/service/service_handlers/p4_fabric_tna_acl/p4_fabric_tna_acl_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} ACL rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -214,7 +215,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert ACL rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete ACL rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -225,6 +226,7 @@ class P4FabricACLServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} ACL rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading
src/service/service/service_handlers/p4_fabric_tna_int/p4_fabric_tna_int_service_handler.py +6 −4 Original line number Diff line number Diff line Loading @@ -126,6 +126,7 @@ class P4FabricINTServiceHandler(_ServiceHandler): # You should no longer visit this device again visited.add(device.name) if applied_rules > 0: LOGGER.info("Installed {}/{} INT rules on device {}".format( applied_rules, actual_rules, device.name)) Loading Loading @@ -191,6 +192,7 @@ class P4FabricINTServiceHandler(_ServiceHandler): # You should no longer visit this device again visited.add(device.name) if applied_rules > 0: LOGGER.info("Deleted {}/{} INT rules from device {}".format( applied_rules, actual_rules, device.name)) Loading
src/service/service/service_handlers/p4_fabric_tna_l2_simple/p4_fabric_tna_l2_simple_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -131,6 +131,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} L2 rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -197,7 +198,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert L2 rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete L2 rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -208,6 +209,7 @@ class P4FabricL2SimpleServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} L2 rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading
src/service/service/service_handlers/p4_fabric_tna_l3/p4_fabric_tna_l3_service_handler.py +7 −5 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Installed {}/{} L3 rules on device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading Loading @@ -195,7 +196,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): json_config_rules=rules ) except Exception as ex: LOGGER.error("Failed to insert L3 rules on device {} due to {}".format(device.name, ex)) LOGGER.error("Failed to delete L3 rules from device {} due to {}".format(device.name, ex)) finally: rules.clear() Loading @@ -206,6 +207,7 @@ class P4FabricL3ServiceHandler(_ServiceHandler): # You should no longer visit this device port again visited.add(dev_port_key) if applied_rules > 0: LOGGER.info("Deleted {}/{} L3 rules from device {} and port {}".format( applied_rules, actual_rules, device_name, port_id)) Loading