Skip to content

Commit

Permalink
system-common-macros.at: Add a iface-id to interfaces.
Browse files Browse the repository at this point in the history
IntegrationGuide.md explains the meaning of the key 'iface-id'. Adding
it as part of ADD_VETH is useful for OVN related tests. For non-OVN
tests, it should have no effect. Upcoming commits take advantage of this.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Joe Stringer <[email protected]>
  • Loading branch information
shettyg committed Jul 13, 2016
1 parent 8ab9b45 commit 37f8ab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/system-common-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ m4_define([ADD_VETH],
CONFIGURE_VETH_OFFLOADS([$1])
AT_CHECK([ip link set $1 netns $2])
AT_CHECK([ip link set dev ovs-$1 up])
AT_CHECK([ovs-vsctl add-port $3 ovs-$1])
AT_CHECK([ovs-vsctl add-port $3 ovs-$1 -- \
set interface ovs-$1 external-ids:iface-id="$1"])
NS_CHECK_EXEC([$2], [ip addr add $4 dev $1])
NS_CHECK_EXEC([$2], [ip link set dev $1 up])
if test -n "$5"; then
Expand Down

0 comments on commit 37f8ab6

Please sign in to comment.