Skip to content

Commit

Permalink
fixing test 01-smoke/03-bridges-and-host.robot
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Jun 30, 2021
1 parent 8dd605d commit abbc783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/01-smoke/03-bridges-and-host.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ Verify management network is using user-specified bridge
# show management interface info and cut the information about the ifindex of the remote veth
# note that exec returns the info in the stderr stream, thus we use stderr to parse the ifindex
${rc} ${iface} = OperatingSystem.Run And Return Rc And Output
... sudo containerlab --runtime ${runtime} exec -t ${CURDIR}/${lab-file} --label clab-node-name\=l1 --cmd "ip l show eth0" 2>&1 | cut -d ' ' -f5 | cut -d '@' -f2 | cut -c3-
... sudo containerlab --runtime ${runtime} exec -t ${CURDIR}/${lab-file} --label clab-node-name\=l1 --cmd "ip l show eth0" 2>&1 | perl -lne '/.*[0-9]+: .*\\@if(.*:) .*/ && print $1'
Log ${iface}
Should Be Equal As Integers ${rc} 0
${rc} ${res} = OperatingSystem.Run And Return Rc And Output
... sudo ip l | grep ${iface}
... sudo ip l | grep "${iface}"
Log ${res}
Should Contain ${res} master ${mgmt-br-name} state UP

Expand Down

0 comments on commit abbc783

Please sign in to comment.