summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-04-17 02:21:21 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-04-21 20:55:34 +0900
commit2eccc5da418f2764b33f9eca75e34459473adc95 (patch)
treecdf7527da31130b0a104467278da61d587447a66
parent128fd85c13ab00fe661b1ef19cb75039b67b1d67 (diff)
bgp: fix typo
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/bgp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
index 974967d3..8bcffa82 100644
--- a/ryu/lib/packet/bgp.py
+++ b/ryu/lib/packet/bgp.py
@@ -1384,21 +1384,21 @@ class BGPPathAttributeCommunities(_PathAttribute):
"""Returns True if given value matches well-known community NO_EXPORT
attribute value.
"""
- return comm_attr == Community.NO_EXPORT
+ return comm_attr == BGPPathAttributeCommunities.NO_EXPORT
@staticmethod
def is_no_advertise(comm_attr):
"""Returns True if given value matches well-known community
NO_ADVERTISE attribute value.
"""
- return comm_attr == Community.NO_ADVERTISE
+ return comm_attr == BGPPathAttributeCommunities.NO_ADVERTISE
@staticmethod
def is_no_export_subconfed(comm_attr):
"""Returns True if given value matches well-known community
NO_EXPORT_SUBCONFED attribute value.
"""
- return comm_attr == Community.NO_EXPORT_SUBCONFED
+ return comm_attr == BGPPathAttributeCommunities.NO_EXPORT_SUBCONFED
def has_comm_attr(self, attr):
"""Returns True if given community attribute is present."""