Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Allow multiple NLRIs in single MpReachNLRIAttribute #1755

Conversation

iwaseyusuke
Copy link
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 <[email protected]>
@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