config_get v 'config' 'lldp_class'; append _string "$v" ","
config_get v 'config' 'agentxsocket'; append _string "$v" ","
config_get v 'config' 'cid_interface'; append _string "$v" ","
+ config_get v 'config' 'filter'; append _string "$v" ","
config_get_bool v 'config' 'readonly_mode'; append _string "$v" ","
config_get_bool v 'config' 'enable_lldp' 1; append _string "$v" ","
config_get_bool v 'config' 'enable_cdp'; append _string "$v" ","
local lldp_location
local readonly_mode
local agentxsocket
+ local filter
config_load 'lldpd'
config_get_bool enable_cdp 'config' 'enable_cdp' 0
config_get lldp_location 'config' 'lldp_location'
config_get_bool readonly_mode 'config' 'readonly_mode' 0
config_get agentxsocket 'config' 'agentxsocket'
+ config_get filter 'config' 'filter' 15
mkdir -p ${LLDPD_RUN}
chown lldp:lldp ${LLDPD_RUN}
[ $readonly_mode -gt 0 ] && procd_append_param command '-r'
[ -n "$lldp_class" ] && procd_append_param command -M "$lldp_class"
[ -n "$agentxsocket" ] && procd_append_param command -x -X "$agentxsocket"
+ [ -n "$filter" ] && procd_append_param command -H "$filter"
# ChassisID interfaces
local ifnames