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

Modify Message (optional parse_headers) and UnicastPrefixes (optional validation and required_fields) #10

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Matvey-Kuk
Copy link
Contributor

@Matvey-Kuk Matvey-Kuk commented Jun 23, 2017

Parse UnicastPrefix faster without validation or even exclude some unnecessary fields. Unit tests for new features provided.

# Conflicts:
#	src/openbmp/api/parsed/message/Base.py
#	src/openbmp/api/parsed/message/Message.py
#	src/openbmp/api/parsed/message/UnicastPrefix.py
…ptional validation and required_fields), validation bug fix
for record in Base.isplit(data, "\n"):
fields = record.split('\t') # Fields of a record as array.

fields_map = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like your conflict merge reverted changes that should be here. Please check your merge conflict changes and correct here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimEvens isn't it what I moved to lines 117-122? I don't see anything missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it's tested in "tests/test_unicast_prefix.py"

Copy link
Contributor

@TimEvens TimEvens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix reverted code.

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.

2 participants