summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-11-06 16:59:24 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-11-06 16:59:24 +0900
commit91515a4d3280e64f15643932bf3e3772524c007e (patch)
treeb2e79efa3295609dea33a517816dbeb2e694df82
parent85713492748a2613d62d5fa82e0013ab93968b1f (diff)
bgp: remove uncommon open msg check
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/speaker.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/ryu/services/protocols/bgp/speaker.py b/ryu/services/protocols/bgp/speaker.py
index c206e42f..257efab4 100644
--- a/ryu/services/protocols/bgp/speaker.py
+++ b/ryu/services/protocols/bgp/speaker.py
@@ -423,20 +423,6 @@ class BgpProtocol(Protocol, Activity):
if open_msg.version != BGP_VERSION_NUM:
raise bgp.UnsupportedVersion(BGP_VERSION_NUM)
- adv_caps = open_msg.opt_param
- for cap in adv_caps:
- if cap.cap_code == BGP_CAP_ROUTE_REFRESH:
- rr_cap_adv = cap
- elif cap.cap_code == BGP_CAP_ENHANCED_ROUTE_REFRESH:
- err_cap_adv = cap
- # If either RTC or RR/ERR are MUST capability if peer does not support
- # either one of them we have to end session as we have to request peer
- # to send prefixes for new VPNs that may be created automatically.
- # TODO(PH): Check with experts if error is suitable in this case
- if not (rr_cap_adv or err_cap_adv or
- self._check_route_fmly_adv(open_msg, RF_RTC_UC)):
- raise bgp.UnsupportedOptParam()
-
def _handle_msg(self, msg):
"""When a BGP message is received, send it to peer.