Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed May 30, 2024
1 parent 85c25d2 commit db4272f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fabrictestbed_extensions/fablib/network_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db4272f

Please sign in to comment.