summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/services/protocols/bgp/info_base/base.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/ryu/services/protocols/bgp/info_base/base.py b/ryu/services/protocols/bgp/info_base/base.py
index 54e02bb5..a11de7f1 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):