-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SNMP][IPv6]: Fix SNMP IPv6 reachability issue in certain scenarios #15487
Changes from 3 commits
8e7aa23
cf2f69d
8b1359f
6d0c64f
27ed71e
da40251
6859d0d
e9cdf0a
40ba8f1
15bf353
d1e4de4
817396c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1700,6 +1700,17 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw | |
results['LOOPBACK_INTERFACE'][host_lo_intf[0]] = {} | ||
|
||
results['MGMT_VRF_CONFIG'] = mvrf | ||
|
||
# Set SNMP_AGENT_ADDRESS_CONFIG to Management IP and Loopback0 IP | ||
if asic_name is None: | ||
results['SNMP_AGENT_ADDRESS_CONFIG'] = {} | ||
for mgmt_if in results['MGMT_INTERFACE'].keys(): | ||
snmp_key = mgmt_if[1].split('/')[0] + '|161|' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The MGMT_INTERFACE keys contains interface name and ip address. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, you mean 1 is the index of tuple. Could you prevent using magic number? how about tuple assignment or define a constant for 1. |
||
results['SNMP_AGENT_ADDRESS_CONFIG'][snmp_key] = {} | ||
for loip in results['LOOPBACK_INTERFACE']: | ||
if len(loip) == 2 and loip[0] == 'Loopback0': | ||
snmp_key = loip[1].split('/')[0] + '|161|' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
results['SNMP_AGENT_ADDRESS_CONFIG'][snmp_key] = {} | ||
|
||
phyport_intfs = {} | ||
vlan_intfs = {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More secure container will bring better isolation between host and container. There is no access to docker0 insider container in future.
You may consider passing env var while
docker create
. #Closed