Skip to content

Commit

Permalink
Merge pull request #99 from fabric-testbed/r1.7-patch-sacn-al2s-empty…
Browse files Browse the repository at this point in the history
…-vlan

fix: skip interfaces with empty vlan range
  • Loading branch information
kthare10 authored Jan 8, 2025
2 parents b28e9cd + 153bdf1 commit 52b4f60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fimutil/al2s/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from fimutil.al2s.cloud_cfg import REGION_NAME_MAP
from yaml import load as yload
from yaml import FullLoader
import logging
import os
import re

Expand Down Expand Up @@ -87,12 +88,14 @@ def build_topology(self) -> None:
port_nid = f"port+al2s:{port_name}"
speed_gbps = int(port['capacity'])
vlan_range = port['vlan_range']
if vlan_range == '':
logging.warning(f'Port {port_name} has empty vlan range - skip')
continue
# add capabilities
port_caps = f.Capacities(bw=speed_gbps)
# add labels
port_labs = f.Labels(device_name=port['device_name'], local_name=port['interface_name'])
port_labs = _update_vlan_label(port_labs, vlan_range)

# TODO: identify FABRIC facing interface
# Add WAN switch node, network_service and ports with stitch_node=True
# Add Links with stitch_node=False
Expand Down

0 comments on commit 52b4f60

Please sign in to comment.