#NEWLINE# def setup_br( self , br , veth_rt_2_br , veth_pem_2_br , veth_br_2_pem ) : #NEWLINE# #INDENT# with ipdb . create ( ifname = veth_pem_2_br , kind = 'veth' , peer = veth_br_2_pem ) as v : #NEWLINE# #INDENT# v . up ( ) #NEWLINE# #UNINDENT# ipdb . interfaces [ veth_br_2_pem ] . up ( ) . commit ( ) #NEWLINE# subprocess . call ( [ 'sysctl' , '-q' , '-w' , ( ( 'net.ipv6.conf.' + veth_pem_2_br ) + '.disable_ipv6=1' ) ] ) #NEWLINE# subprocess . call ( [ 'sysctl' , '-q' , '-w' , ( ( 'net.ipv6.conf.' + veth_br_2_pem ) + '.disable_ipv6=1' ) ] ) #NEWLINE# with ipdb . create ( ifname = br , kind = 'bridge' ) as br1 : #NEWLINE# #INDENT# br1 . add_port ( ipdb . interfaces [ veth_pem_2_br ] ) #NEWLINE# br1 . add_port ( ipdb . interfaces [ veth_rt_2_br ] ) #NEWLINE# br1 . up ( ) #NEWLINE# #UNINDENT# subprocess . call ( [ 'sysctl' , '-q' , '-w' , ( ( 'net.ipv6.conf.' + veth_pem_2_br ) + '.disable_ipv6=1' ) ] )