Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xi-yang committed Oct 3, 2024
1 parent 744518a commit a610a83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fabric_am/handlers/net_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def __l2ptp_create_data(self, sliver: NetworkServiceSliver, service_name: str) -
interface = {}
if labs.local_name is None:
raise NetHandlerException(f'l2ptp - interface "{interface_name}" has no "local_name" label')
interface = self.parse_interface_name(sliver.mirror_port)
interface = self.parse_interface_name(labs.local_name)
if labs.vlan is None or labs.vlan == 0:
raise NetHandlerException(
f'l2ptp - interface "{interface_name}" must be tagged (with vlan label in 1..4095)')
Expand Down Expand Up @@ -563,7 +563,7 @@ def __l2sts_create_data(self, sliver: NetworkServiceSliver, service_name: str) -
interface = {}
if labs.local_name is None:
raise NetHandlerException(f'l2sts - interface "{interface_name}" has no "local_name" label')
interface = self.parse_interface_name(sliver.mirror_port)
interface = self.parse_interface_name(labs.local_name)
if labs.vlan is None:
interface['outervlan'] = 0
else:
Expand Down Expand Up @@ -639,7 +639,7 @@ def __fabnetv4_create_data(self, sliver: NetworkServiceSliver, service_name: str
interface = {}
if labs.local_name is None:
raise NetHandlerException(f'fabnetv4 - interface "{interface_name}" has no "local_name" label')
interface = self.parse_interface_name(sliver.mirror_port)
interface = self.parse_interface_name(labs.local_name)
if labs.vlan is None:
interface['outervlan'] = 0
else:
Expand Down Expand Up @@ -717,7 +717,7 @@ def __fabnetv6_create_data(self, sliver: NetworkServiceSliver, service_name: str
interface = {}
if labs.local_name is None:
raise NetHandlerException(f'fabnetv6 - interface "{interface_name}" has no "local_name" label')
interface = self.parse_interface_name(sliver.mirror_port)
interface = self.parse_interface_name(labs.local_name)
if labs.vlan is None:
interface['outervlan'] = 0
else:
Expand Down Expand Up @@ -798,7 +798,7 @@ def __l3vpn_create_data(self, sliver: NetworkServiceSliver, service_name: str) -
interface = {}
if labs.local_name is None:
raise NetHandlerException(f'l3vpn - interface "{interface_name}" has no "local_name" label')
interface = self.parse_interface_name(sliver.mirror_port)
interface = self.parse_interface_name(labs.local_name)
if labs.vlan is None:
interface['outervlan'] = 0
else:
Expand Down

0 comments on commit a610a83

Please sign in to comment.