[dhcp_relay] Only call 'wait_until_iface_ready' once for each interface (#3317)

Signed-off-by: wangshengjun <wangshengjun@asterfusion.com>
This commit is contained in:
wangshengjun 2019-08-10 02:28:15 +08:00 committed by Joe LeVeque
parent c035be688c
commit 7b0389d8a3

View File

@ -29,12 +29,19 @@ function wait_until_iface_ready
# Wait for all interfaces to be up and ready # Wait for all interfaces to be up and ready
{% for (name, prefix) in INTERFACE|pfx_filter %} {% for name in PORT %}
{% if name in INTERFACE %}
wait_until_iface_ready ${PORT_TABLE_PREFIX} {{ name }} wait_until_iface_ready ${PORT_TABLE_PREFIX} {{ name }}
{% endif %}
{% endfor %} {% endfor %}
{% for (name, prefix) in VLAN_INTERFACE|pfx_filter %} {% for name in VLAN %}
{% if name in VLAN_INTERFACE %}
wait_until_iface_ready ${VLAN_TABLE_PREFIX} {{ name }} wait_until_iface_ready ${VLAN_TABLE_PREFIX} {{ name }}
{% endif %}
{% endfor %} {% endfor %}
{% for (name, prefix) in PORTCHANNEL_INTERFACE|pfx_filter %} {% for name in PORTCHANNEL %}
{% if name in PORTCHANNEL_INTERFACE %}
wait_until_iface_ready ${LAG_TABLE_PREFIX} {{ name }} wait_until_iface_ready ${LAG_TABLE_PREFIX} {{ name }}
{% endif %}
{% endfor %} {% endfor %}