smartbgp / yabgp

:bowtie:Yet Another BGP Python Implementation
http://yabgp.readthedocs.org
Apache License 2.0
238 stars 70 forks source link

fix igp router id parse error #76

Closed meidli closed 6 years ago

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.002%) to 61.187% when pulling df76881534cfb0946b4f3ac5ea819cd07462122a on meidli:master into c5d22948d9f157f4d0d3ffd164363f455787573b on smartbgp:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at ?% when pulling 3bc7a92885e57dd2df32ddba4c4c4b847a7277e1 on meidli:master into c5d22948d9f157f4d0d3ffd164363f455787573b on smartbgp:master.

xiaopeng163 commented 6 years ago

OSPFv2, OSPFv3 non-pseudonode

return_data['igp_router_id'] = {
    "router_id": "3.3.3.3",
    "pseudonode": False
}

OSPFv2, OSPFv3, LAN pseudonode

{
    "router_id": "3.3.3.3",
    "pseudonode": True,
    "designated_router_addr": "100.100.100.3"
}

IS-IS LAN pseudonode = ISO Node-ID + PSN

 return_data['igp_router_id'] = {
    "iso_node_id": "0000.0000.0001",
    "psn": 1,
    "pseudonode": True
}

IS-IS non-pseudonode

{
    "iso_node_id": "0000.0000.0001",
    "pseudonode": False
}