doc: fix error in ovsdb_manager.rst code
@@ -31,13 +31,14 @@ on a bridge.
self.logger.info('New OVSDB connection from system id %s',
systemd_id)
- def create_port(self, systemd_id, bridge_name, name):
+ def create_port(self, system_id, bridge_name, name):
new_iface_uuid = uuid.uuid4()
new_port_uuid = uuid.uuid4()
- def _create_port(tables, insert):
bridge = ovsdb.row_by_name(self, system_id, bridge_name)
+ def _create_port(tables, insert):
+
iface = insert(tables['Interface'], new_iface_uuid)
iface.name = name
iface.type = 'internal'
@@ -46,7 +47,7 @@ on a bridge.
port.name = name
port.interfaces = [iface]
- brdige.ports = bridfe.ports + [port]
+ bridge.ports = bridge.ports + [port]
return (new_port_uuid, new_iface_uuid)
@@ -58,4 +59,4 @@ on a bridge.
name, bridge, rep.status)
return None
- return reply.insert_uuid[new_port_uuid]
+ return rep.insert_uuids[new_port_uuid]
