You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the results you received:
The management_gw shoud is calculated as network + 1 which is not correct for all Lab. environment. In my case the gateway IP is network + 254.
Describe the results you expected:
The management_gw shoud be retrieved from the XML file rather than network + 1.
The text was updated successfully, but these errors were encountered:
I have the same issue as yours.
And you will notice that the gateway of management interface of DUT is hard coding to "+1" also.
See the following link that I open in sonic-buildimage if need: sonic-net/sonic-buildimage#857
For now I'm using self-modified script to create a tag called "mgmt_gw" and assign its value to management_gw to workaround this issue.
Description
Gateway information for Fanout switches generated from ansible/library/conn_graph_facts.py is not correct.
Steps to reproduce the issue:
...
management_ip = l3info.find('ManagementIPInterface').attrib['Prefix']
deviceinfo[hostname]['ManagementIp'] = management_ip
mgmtip = ipaddress.IPNetwork(management_ip)
deviceinfo[hostname]['mgmtip'] = str(mgmtip.ip)
management_gw = str(mgmtip.network+1)
deviceinfo[hostname]['ManagementGw'] = management_gw
Describe the results you received:
The management_gw shoud is calculated as network + 1 which is not correct for all Lab. environment. In my case the gateway IP is network + 254.
Describe the results you expected:
The management_gw shoud be retrieved from the XML file rather than network + 1.
The text was updated successfully, but these errors were encountered: