-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
# 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 = {} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix reverted code.
Parse UnicastPrefix faster without validation or even exclude some unnecessary fields. Unit tests for new features provided.