For convenience when printing command results, this patch fixes VSCtlCommand to inherit StringifyMixin.
Signed-off-by: IWASE Yusuke <[email protected]> --- ryu/lib/ovs/vsctl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py index 000f1d0..289ca82 100644 --- a/ryu/lib/ovs/vsctl.py +++ b/ryu/lib/ovs/vsctl.py @@ -38,6 +38,8 @@ from ovs.db import idl from ryu.lib import hub from ryu.lib.ovs import vswitch_idl +from ryu.lib.stringify import StringifyMixin + LOG = logging.getLogger(__name__) # use ovs.vlog? @@ -841,7 +843,7 @@ class _VSCtlTable(object): self.row_ids = vsctl_row_id_list -class VSCtlCommand(object): +class VSCtlCommand(StringifyMixin): def __init__(self, command, args=None, options=None): super(VSCtlCommand, self).__init__() -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
