Fix waiting for interfaces to get set up
This commit is contained in:
parent
3b56c1ad3e
commit
39e351cacc
@ -6,7 +6,7 @@ rm -f /var/run/rsyslogd.pid
|
||||
# Start rsyslog
|
||||
supervisorctl start rsyslogd
|
||||
|
||||
# If our supervisor config has entries in the "isc-dhcp-relay" group...
|
||||
# If our supervisor config has entries in the "dhcp-relay" group...
|
||||
if [ $(supervisorctl status | grep -c "^dhcp-relay:") -gt 0 ]; then
|
||||
# Wait for all interfaces to come up and be assigned IPv4 addresses before
|
||||
# starting the DHCP relay agent(s). If an interface the relay should listen
|
||||
|
@ -40,3 +40,8 @@ wait_until_iface_ready {{ name }} {{ prefix }}
|
||||
wait_until_iface_ready {{ name }} {{ prefix }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
# Wait 10 seconds for the rest of interfaces to get added/populated.
|
||||
# dhcrelay listens on each of the interfaces (in addition to the port
|
||||
# channels and vlan interfaces)
|
||||
sleep 10
|
||||
|
@ -31,3 +31,7 @@ wait_until_iface_ready PortChannel02 10.0.0.58/31
|
||||
wait_until_iface_ready PortChannel03 10.0.0.60/31
|
||||
wait_until_iface_ready PortChannel04 10.0.0.62/31
|
||||
|
||||
# Wait 10 seconds for the rest of interfaces to get added/populated.
|
||||
# dhcrelay listens on each of the interfaces (in addition to the port
|
||||
# channels and vlan interfaces)
|
||||
sleep 10
|
||||
|
Reference in New Issue
Block a user