Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/services/protocols/bgp/info_base/base.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
diff --git a/ryu/services/protocols/bgp/info_base/base.py b/ryu/services/protocols/bgp/info_base/base.py index 54e02bb..a11de7f 100644 --- a/ryu/services/protocols/bgp/info_base/base.py +++ b/ryu/services/protocols/bgp/info_base/base.py @@ -665,6 +665,24 @@ class Destination(object): return result + def __lt__(self, other): + return str(self) < str(other) + + def __le__(self, other): + return str(self) <= str(other) + + def __eq__(self, other): + return str(self) == str(other) + + def __ne__(self, other): + return str(self) != str(other) + + def __gt__(self, other): + return str(self) > str(other) + + def __ge__(self, other): + return str(self) >= str(other) + @six.add_metaclass(ABCMeta) class Path(object): -- 2.7.4 ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel