From db4272f2812937c6c9dfe0520bb8053de04e03dd Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Thu, 30 May 2024 09:10:04 -0400 Subject: [PATCH] black --- fabrictestbed_extensions/fablib/network_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fabrictestbed_extensions/fablib/network_service.py b/fabrictestbed_extensions/fablib/network_service.py index e5d86f09..f1b812da 100644 --- a/fabrictestbed_extensions/fablib/network_service.py +++ b/fabrictestbed_extensions/fablib/network_service.py @@ -151,7 +151,11 @@ def calculate_l2_nstype(interfaces: List[Interface] = None) -> ServiceType: # L2PTP limitation for Facility Ports: # basically the layer-2 point-to-point server template applied is not popping # vlan tags over the MPLS tunnel between two facility ports. - if includes_facility_port and facility_port_interfaces < 2 and not basic_nic_count: + if ( + includes_facility_port + and facility_port_interfaces < 2 + and not basic_nic_count + ): # For now WAN FacilityPorts require L2PTP rtn_nstype = NetworkService.network_service_map["L2PTP"] elif len(interfaces) >= 2: