From b72529470c49c588d1fd0f3e605653a751dedc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hor=C3=A1=C4=8Dek?= Date: Sat, 9 Dec 2017 20:09:14 +0200 Subject: [PATCH] Document *_extenal_ids methods in open_vswitch/api.py Change-Id: I2e07d2d577982e492b24844f303bb5edacf4f7ba --- ovsdbapp/schema/open_vswitch/api.py | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/ovsdbapp/schema/open_vswitch/api.py b/ovsdbapp/schema/open_vswitch/api.py index 0eb99a45..c12ce701 100644 --- a/ovsdbapp/schema/open_vswitch/api.py +++ b/ovsdbapp/schema/open_vswitch/api.py @@ -120,6 +120,19 @@ class API(api.API): :returns: :class:`Command` with field value result """ + @abc.abstractmethod + def br_set_external_id(self, name, field, value): + """Create a command to set the OVS Bridge's external_ids + + :param name: The name of the bridge + :type name: string + :param field: The external_ids field to set + :type field: string + :param value: The external_ids value to set + :type value: string + :returns: :class:`Command` with field no result + """ + @abc.abstractmethod def set_controller(self, bridge, controllers): """Create a command to set an OVS bridge's OpenFlow controllers @@ -203,3 +216,27 @@ class API(api.API): :type bridge: string :returns: :class:`Command` with list of interfaces names result """ + + @abc.abstractmethod + def iface_get_external_id(self, name, field): + """Create a command to return a field from the Interface's external_ids + + :param name: The name of the interface + :type name: string + :param field: The external_ids field to return + :type field: string + :returns: :class:`Command` with field value result + """ + + @abc.abstractmethod + def iface_set_external_id(self, name, field, value): + """Create a command to set the OVS Interface's external_ids + + :param name: The name of the interface + :type name: string + :param field: The external_ids field to set + :type field: string + :param value: The external_ids value to set + :type value: string + :returns: :class:`Command` with field no result + """