From 91515a4d3280e64f15643932bf3e3772524c007e Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 6 Nov 2014 16:59:24 +0900 Subject: [PATCH] bgp: remove uncommon open msg check Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/speaker.py | 14 -------------- 1 file changed, 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.