Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

mykolaf
Copy link
Owner

@mykolaf mykolaf commented Dec 14, 2018

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

  • remove the description generating logic
  • add logic to listen to CONFIG_DB PORT table canges

- 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:

configure ports eth0 lldp portidsubtype local eth0
configure system ip management pattern 10.210.25.44

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)

…alias config

Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: retriEve

@@ -221,9 +211,14 @@ class LldpManager(object):

fvp_dict = dict(fvp)

# handle on creation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"handle creation"?

if op == "SET" and fvp_dict.get("state") == "ok":
self.generate_pending_lldp_config_cmd_for_port(key)

# handle on config change
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"handle config..."?

@mykolaf mykolaf closed this Dec 21, 2018
mykolaf pushed a commit that referenced this pull request May 22, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants