endpoint id (eid) now supports greater than values.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-04-20 06:48:41 -06:00
parent 4e4e5d198f
commit 42e5e5b385
4 changed files with 19 additions and 12 deletions

View File

@@ -121,7 +121,8 @@ class FIOEndpProfile(LFCliBase):
cx_post_data = []
for port_name in ports:
for num_connection in range(connections_per_port):
if len(self.local_realm.name_to_eid(port_name)) == 3:
#
if len(self.local_realm.name_to_eid(port_name)) >= 3:
shelf = self.local_realm.name_to_eid(port_name)[0]
resource = self.local_realm.name_to_eid(port_name)[1]
name = self.local_realm.name_to_eid(port_name)[2]
@@ -168,7 +169,7 @@ class FIOEndpProfile(LFCliBase):
self.local_realm.json_post("/cli-json/nc_show_endpoints", {"endpoint": "all"})
for port_name in ports:
for num_connection in range(connections_per_port):
if len(self.local_realm.name_to_eid(port_name)) == 3:
if len(self.local_realm.name_to_eid(port_name)) >= 3:
shelf = self.local_realm.name_to_eid(port_name)[0]
resource = self.local_realm.name_to_eid(port_name)[1]
name = self.local_realm.name_to_eid(port_name)[2]