Skip to content

Commit 9b1d770

Browse files
committed
tests: Simplify getting bgpIP in network forward test
Signed-off-by: Nikita Mezhenskyi <[email protected]>
1 parent 49ee6da commit 9b1d770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/suites/network_forward.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_network_forward() {
77

88
lxc network create bgpbr # Bridge to start BGP listener on.
99

10-
bgpIP=$(lxc network ls | grep bgpbr | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
10+
bgpIP=$(lxc network get bgpbr ipv4.address | cut -d/ -f1)
1111

1212
lxc network create "${netName}" \
1313
ipv4.address=192.0.2.1/24 \

0 commit comments

Comments
 (0)