Skip to content

Serialization, Attributes simplification, Communities serialization#9

Merged
digizeph merged 10 commits into
mainfrom
community-extension
Nov 28, 2021
Merged

Serialization, Attributes simplification, Communities serialization#9
digizeph merged 10 commits into
mainfrom
community-extension

Conversation

@digizeph

Copy link
Copy Markdown
Member

This PR includes a number of changes:

  • add serde::Serialize implementation to MrtRecord and all it's sub strcuts. This allows easy serialization of MrtRecords and BgpElems.
  • Change data type of attributes to Vec<Attribute> instead of Vec<(AttrType, Attribute)> for clarity and ease of use
  • Add MetaCommunity enum to represent any Community types. Also updated the serialization to add string prefixes to extended communities and large communities for ease of use.

Related milestone: https://github.com/bgpkit/bgpkit-parser/milestone/2

@digizeph digizeph merged commit 41fe20f into main Nov 28, 2021
@digizeph digizeph deleted the community-extension branch November 28, 2021 19:55
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