mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
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>
This commit is contained in:
parent
128fd85c13
commit
2eccc5da41
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user