From 2037408b8e51db35922d427492245a18e6e77ea7 Mon Sep 17 00:00:00 2001 From: Italo Valcy Date: Sat, 10 Aug 2024 08:08:51 -0300 Subject: [PATCH] add backward compatibility to Port.label_range/Port.vlan_range --- src/sdx_pce/topology/temanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdx_pce/topology/temanager.py b/src/sdx_pce/topology/temanager.py index 6a9b79ed..9d8ec292 100644 --- a/src/sdx_pce/topology/temanager.py +++ b/src/sdx_pce/topology/temanager.py @@ -145,7 +145,7 @@ def _update_vlan_tags_table(self, domain_name: str, port_map: dict): # port itself (v1), or from the services attached to it (v2). label_range = self.get_port_obj_services_label_range(port) if label_range is None: - label_range = port.label_range + label_range = port.vlan_range # TODO: why is label_range sometimes None, and what to # do when that happens?