summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/apiutil
diff options
context:
space:
mode:
authorNasato Goto <7310510@gmail.com>2018-08-27 23:31:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-28 08:49:11 +0900
commit23ac6ebb861a725273c6b663dc484becef55087c (patch)
treed6533ab6e1a02d389e6025f6c440f110cc4ca2d4 /internal/pkg/apiutil
parente7929016918bb27263a3cb7548e9c45bb109a308 (diff)
test/lib: Enable static IP address
This patch enable us to give test containers a static IP address by passing 'ip_addr' argument to addif method. In addition, 'v6=True' argument is needed when we specify static IPv6 address. Usage: br01 = Bridge(name='br01', subnet='192.168.0.0/24', self_ip=False) g1 = GoBGPContainer(name='g1', asn=64512 router_id='10.0.0.1') br01.addif(g1, ip_addr='192.168.0.11')
Diffstat (limited to 'internal/pkg/apiutil')
0 files changed, 0 insertions, 0 deletions