diff options
| author | Stephen Howell <howels@allthatwemight.be> | 2023-12-16 23:49:21 +0000 |
|---|---|---|
| committer | Stijn Tintel <stijn@linux-ipv6.be> | 2024-02-08 12:35:36 +0200 |
| commit | c98ee4dbb3db0f064d990941cdd82e872da76946 (patch) | |
| tree | ffb203b8f4a872d73ca8455d4c4b8171845f3c8b /package/network | |
| parent | 24176a6bdd8f26040a97960868fd0d9ee968d695 (diff) | |
| download | upstream-c98ee4dbb3db0f064d990941cdd82e872da76946.tar.gz upstream-c98ee4dbb3db0f064d990941cdd82e872da76946.tar.bz2 upstream-c98ee4dbb3db0f064d990941cdd82e872da76946.zip | |
lldpd: add agent-type option
add option to set agent-type to control propogation
Signed-off-by: Stephen Howell <howels@allthatwemight.be>
Diffstat (limited to 'package/network')
| -rw-r--r-- | package/network/services/lldpd/files/lldpd.init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init index 55fbe61fc4d..31dca872cc4 100644 --- a/package/network/services/lldpd/files/lldpd.init +++ b/package/network/services/lldpd/files/lldpd.init @@ -102,6 +102,9 @@ write_lldpd_conf() config_get lldpmed_fast_start_tx_interval 'config' 'lldpmed_fast_start_tx_interval' 0 fi + local lldp_agenttype + config_get lldp_agenttype 'config' 'lldp_agenttype' 'nearest-bridge' + # Clear out the config file first echo -n > "$LLDPD_CONF" [ -n "$ifnames" ] && echo "configure system interface pattern" "$ifnames" >> "$LLDPD_CONF" @@ -116,6 +119,7 @@ write_lldpd_conf() echo "configure med fast-start" "enable" >> "$LLDPD_CONF" fi fi + [ -n "$lldp_agenttype" ] && echo "configure lldp agent-type" "\"$lldp_agenttype\"" >> "$LLDPD_CONF" # Since lldpd's sysconfdir is /tmp, we'll symlink /etc/lldpd.d to /tmp/$LLDPD_CONFS_DIR |
