Skip to content

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