503d87b901
Lldp can not be configured in host environment, so we expose lldpcli command of lldp docker to host for configuring more convenient.
11 lines
180 B
Bash
11 lines
180 B
Bash
#!/bin/bash
|
|
|
|
DOCKER_EXEC_FLAGS="i"
|
|
|
|
# Determine whether stdout is on a terminal
|
|
if [ -t 1 ] ; then
|
|
DOCKER_EXEC_FLAGS+="t"
|
|
fi
|
|
|
|
docker exec -$DOCKER_EXEC_FLAGS lldp lldpcli "$@"
|