-
Notifications
You must be signed in to change notification settings - Fork 0
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
[lldpmgr] add mgmt ip to lldpd conf template, handle port description/… #2
Conversation
…alias config Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
dockers/docker-lldp-sv2/lldpmgrd
Outdated
else: | ||
log_info("Unable to retrieve neighbor information for port '{}'. Not adding port description.".format(port_name)) | ||
log_info("Unable to retrive description for port '{}'. Not adding port description") |
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.
typo: retriEve
dockers/docker-lldp-sv2/lldpmgrd
Outdated
@@ -221,9 +211,14 @@ class LldpManager(object): | |||
|
|||
fvp_dict = dict(fvp) | |||
|
|||
# handle on creation |
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.
"handle creation"?
dockers/docker-lldp-sv2/lldpmgrd
Outdated
if op == "SET" and fvp_dict.get("state") == "ok": | ||
self.generate_pending_lldp_config_cmd_for_port(key) | ||
|
||
# handle on config change |
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.
"handle config..."?
…c-net#2832) * Base DHCP relay Docker image on Strech base Docker * Change URL for isc-dhcp source repository * Upgrade isc-dhcp source branch to 4.3.5-3.1 * Update patch #1 to apply to isc-dhcp 4.3.5-3.1 * Update patch #2 to apply to isc-dhcp 4.3.5-3.1 * Update patch #3 to apply to isc-dhcp 4.3.5-3.1 * Update patch #4 to apply to isc-dhcp 4.3.5-3.1 * Remove security patches, as they are now applied as part of 4.3.5-3.1 source * Reorder patches to apply bug fix first, then features * Extend makefile to build debug Docker image * Update commit that series file applies against
Signed-off-by: Mykola Faryma mykolaf@mellanox.com
- What I did
Add mgmt ip to lldpd.conf.j2
Change lldpmgrd to handle port description configured in CONFIG_DB and config the lldpd accordingly, instead of engineering some description which is never synced with DB.
- How I did it
- How to verify it
sonic-cfggen -m /etc/sonic/minigraph.xml -p /usr/share/sonic/device/x86_64-mlnx_msn2100-r0/ACS-MSN2100/port_config.ini -t lldpd.conf.j2
Result:
Config some port descriptions/alias, check lldp local port info
- Description for the changelog
Update lldpmgrd logic
- A picture of a cute animal (not mandatory but encouraged)