ovs-vsctl will convert the names for you, but native OVSDB won't.
It's always better to match case correctly when possible.
Partially-implemnts: blueprint vsctl-to-ovsdb
Change-Id: Ic782856446449a0296564cb6a0e6cf20d7ccfa7d
check_error=True)
def set_protocols(self, protocols):
- self.set_db_attribute('bridge', self.br_name, 'protocols', protocols,
+ self.set_db_attribute('Bridge', self.br_name, 'protocols', protocols,
check_error=True)
def create(self):
if out_of_band:
LOG.debug("info_update received. New controller"
"is set to be out of band")
- self.int_br.set_db_attribute("controller",
+ self.int_br.set_db_attribute("Controller",
self.int_bridge_name,
"connection-mode",
"out-of-band")
if controller_ip:
int_br.set_controller(["tcp:" + controller_ip])
if out_of_band:
- int_br.set_db_attribute("controller", bridge_name,
+ int_br.set_db_attribute("Controller", bridge_name,
"connection-mode", "out-of-band")
return int_br
def test_set_protocols(self):
protocols = 'OpenFlow13'
self.br.set_protocols(protocols)
- self._verify_vsctl_mock('set', 'bridge', self.BR_NAME,
+ self._verify_vsctl_mock('set', 'Bridge', self.BR_NAME,
"protocols=%s" % protocols)
def test_create(self):