Fix bug where path.source is set to VRF_TABLE (in vrf.py)
Backport of https://github.com/faucetsdn/ryu/commit/df421911 Story: #2009283 Task: #43621 Change-Id: Iba5b2e176b3bdbedcb20f7ce9c584e77dda60206
This commit is contained in:
parent
2e8cf5bed2
commit
84e8fa6e44
|
@ -36,6 +36,8 @@ from os_ken.lib.packet.bgp import BGP_ATTR_ORIGIN_IGP
|
|||
from os_ken.lib.packet.bgp import BGP_ATTR_ORIGIN_EGP
|
||||
from os_ken.lib.packet.bgp import BGP_ATTR_ORIGIN_INCOMPLETE
|
||||
|
||||
from os_ken.services.protocols.bgp.constants import VRF_TABLE
|
||||
|
||||
LOG = logging.getLogger('bgpspeaker.processor')
|
||||
|
||||
|
||||
|
@ -428,7 +430,7 @@ def _cmp_by_asn(local_asn, path1, path2):
|
|||
"""
|
||||
def get_path_source_asn(path):
|
||||
asn = None
|
||||
if path.source is None:
|
||||
if path.source is None or path.source == VRF_TABLE:
|
||||
asn = local_asn
|
||||
else:
|
||||
asn = path.source.remote_as
|
||||
|
|
Loading…
Reference in New Issue