From 2eccc5da418f2764b33f9eca75e34459473adc95 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 17 Apr 2014 02:21:21 +0000 Subject: bgp: fix typo Signed-off-by: ISHIDA Wataru Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/bgp.py | 6 +++--- 1 file 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.""" -- cgit v1.2.3