l3_cxprofile.py : alias code, added put in exception of the number of

expected stations does not match the number of stations present.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-10-27 07:19:55 -06:00
parent 7e86d436de
commit 55ad888bb1

View File

@@ -252,7 +252,12 @@ class L3CXProfile(LFCliBase):
for port in portdata_df['port-alias']:
if port in cross_connect:
layer3_alias.append(port)
layer3['alias'] = layer3_alias
try:
layer3['alias'] = layer3_alias
except:
print("The Stations or Connection on LANforge did not match expected, \
Check if LANForge initial state correct or delete/cleanup corrects")
exit(1)
timestamp_df = pd.merge(layer3, portdata_df, on='alias')
else: