Skip to content

api: Allow multiple NLRIs in single MpReachNLRIAttribute#1755

Closed
iwaseyusuke wants to merge 1 commit into
osrg:masterfrom
iwaseyusuke:api-Allow_multiple_NLRIs_in_single_MpReachNLRIAttribute
Closed

api: Allow multiple NLRIs in single MpReachNLRIAttribute#1755
iwaseyusuke wants to merge 1 commit into
osrg:masterfrom
iwaseyusuke:api-Allow_multiple_NLRIs_in_single_MpReachNLRIAttribute

Conversation

@iwaseyusuke
Copy link
Copy Markdown
Contributor

Currently, api.UnmarshalPathAttributes() does not allow the multiple NLRIs in a single MpReachNLRIAttribute because when AddPath API supposes only single NLRI is composed. This assumption is equivalent to that "message Path" structure should have single NLRI for calling AddPath
API.

But to represent the received UPDATE messages from peers, a single MpReachNLRIAttribute can contain the multiple NLRIs.

This patch fixes to allow the multiple NLRIs in a single MpReachNLRIAttribute and removes this constraint.


Also this PR and #1754 will solve the CI errors on #1731

Currently, api.UnmarshalPathAttributes() does not allow the multiple
NLRIs in a single MpReachNLRIAttribute because when AddPath API supposes
only single NLRI is composed. This assumption is equivalent to that
"message Path" structure should have single NLRI for calling AddPath
API.

But to represent the received UPDATE messages from peers, a single
MpReachNLRIAttribute can contain the multiple NLRIs.

This patch fixes to allow the multiple NLRIs in a single
MpReachNLRIAttribute and removes this constraint.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
@iwaseyusuke iwaseyusuke deleted the api-Allow_multiple_NLRIs_in_single_MpReachNLRIAttribute branch August 11, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant