Skip to content

Commit

Permalink
[docker-lldp] Fix lldpcli issue when description has special characte…
Browse files Browse the repository at this point in the history
…rs (sonic-net#40)

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
  • Loading branch information
zhenggen-xu committed Feb 10, 2020
1 parent c884f26 commit cb28c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-lldp-sv2/lldpmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class LldpManager(object):

# if there is a description available, also configure that
if port_desc:
lldpcli_cmd += " description {}".format(port_desc)
lldpcli_cmd += " description '{}'".format(port_desc)
else:
log_info("Unable to retrieve description for port '{}'. Not adding port description".format(port_name))

Expand Down

0 comments on commit cb28c34

Please sign in to comment.