def setUp(self): self.br_name = 'obr-test' self.b = bridge.Bridge() if not self.b.add_br(self.br_name): self.fail('add_br: add bridge fail : ' + self.br_name) self.f = flow.Flow() self.ft = flow.FlowTable()
def setUp(self): self.br_name = 'obr-test' self.port_name = 'vport-test' self.b = bridge.Bridge() self.d = ovsdb.OVSDB() self.t = tap_utils.Tap() if not self.b.add_br(self.br_name): self.fail('add_br: add bridge fail : ' + self.br_name) if not self.t.add_tap(self.port_name): self.fail('add_tap: add tap fail : ' + self.port_name) if not self.b.add_port(self.br_name, self.port_name): self.fail('add_port: add port fail : ' + self.port_name)
def __init__(self): self.b = bridge.Bridge() self.d = ovsdb.OVSDB
def setUp(self): self.d = docker.Docker() self.b = bridge.Bridge()
def setUp(self): self.br_name = 'obr-test' self.b = bridge.Bridge() if not self.b.add_br(self.br_name): self.fail('add_br: add bridge fail : ' + self.br_name)