1
0
mirror of https://github.com/osrg/gobgp.git synced 2024-05-11 05:55:10 +00:00
Files
osrg-gobgp/test
Nasato Goto 23ac6ebb86 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')
2018-08-28 08:49:11 +09:00
..
2018-08-28 08:49:11 +09:00