Skip to content

Commit a3e6a9c

Browse files
saiarcot895kellyyeh
authored andcommitted
Fix waiting for interfaces to get set up
1 parent f59f7ad commit a3e6a9c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

dockers/docker-dhcp-relay/start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rm -f /var/run/rsyslogd.pid
66
# Start rsyslog
77
supervisorctl start rsyslogd
88

9-
# If our supervisor config has entries in the "isc-dhcp-relay" group...
9+
# If our supervisor config has entries in the "dhcp-relay" group...
1010
if [ $(supervisorctl status | grep -c "^dhcp-relay:") -gt 0 ]; then
1111
# Wait for all interfaces to come up and be assigned IPv4 addresses before
1212
# starting the DHCP relay agent(s). If an interface the relay should listen

dockers/docker-dhcp-relay/wait_for_intf.sh.j2

+5
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ wait_until_iface_ready {{ name }} {{ prefix }}
4040
wait_until_iface_ready {{ name }} {{ prefix }}
4141
{% endif %}
4242
{% endfor %}
43+
44+
# Wait 10 seconds for the rest of interfaces to get added/populated.
45+
# dhcrelay listens on each of the interfaces (in addition to the port
46+
# channels and vlan interfaces)
47+
sleep 10

src/sonic-config-engine/tests/sample_output/wait_for_intf.sh

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ wait_until_iface_ready PortChannel02 10.0.0.58/31
3131
wait_until_iface_ready PortChannel03 10.0.0.60/31
3232
wait_until_iface_ready PortChannel04 10.0.0.62/31
3333

34+
# Wait 10 seconds for the rest of interfaces to get added/populated.
35+
# dhcrelay listens on each of the interfaces (in addition to the port
36+
# channels and vlan interfaces)
37+
sleep 10

0 commit comments

Comments
 (0)