Policy match was not matching subprotocol correctly
If matching protocol is subprotocol, then match function should compare
it with corresponding value in attributes. Otherwise, match with path
protocol as it was done earlier.
Also need to retain subprotocol value in re-originated routes since
there can be a use case to match on subprotocol for reoriginated
routes. Will have to modify spec accordingly.
Change-Id: Idbbf3e216dfa6cf2fd0e298a451125750613ab83
Closes-Bug: #1756498
(cherry picked from commit 025cd84e5807197f80225315108948c9c89afbe3)
Reviewed: https:/ /review. opencontrail. org/41443 github. com/Juniper/ contrail- controller/ commit/ 281da93893e7442 958a77e0863c6ec ad0a482ab9
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0
commit 281da93893e7442 958a77e0863c6ec ad0a482ab9
Author: Nikhil Bansal <email address hidden>
Date: Mon Apr 2 08:05:11 2018 +0530
Policy match was not matching subprotocol correctly
If matching protocol is subprotocol, then match function should compare
it with corresponding value in attributes. Otherwise, match with path
protocol as it was done earlier.
Also need to retain subprotocol value in re-originated routes since
there can be a use case to match on subprotocol for reoriginated
routes. Will have to modify spec accordingly.
Change-Id: Idbbf3e216dfa6c f2fd0e298a45112 5750613ab83 f80225315108948 c9c89afbe3)
Closes-Bug: #1756498
(cherry picked from commit 025cd84e5807197