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

refactor: separate model for IPSec Security Policies #1679

Merged
merged 3 commits into from
Aug 5, 2020

Conversation

milanlenco
Copy link
Collaborator

The previous model of configuring SPs inside SPD is now deprecated. In practice the content of SPD is changing very frequently and using a single model with all SPs inside is therefore neither convenient nor efficient. A new model SecurityPolicy was added which allows to configure each SP as a separate proto message instance. Although the new model is still backward-compatible with the old one, request to configure SP through the SPD model will return an error (invalid config).

Also fixed couple of bugs that were present in the original implementation and tested the implementation with real-world configurations.

@milanlenco milanlenco changed the title Refactor IPSec Security Policies refactor: separate model for IPSec Security Policies Jul 29, 2020
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
@codecov
Copy link

codecov bot commented Jul 29, 2020

Codecov Report

Merging #1679 into master will increase coverage by 1.78%.
The diff coverage is 41.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1679      +/-   ##
==========================================
+ Coverage   56.22%   58.00%   +1.78%     
==========================================
  Files         603      370     -233     
  Lines       48466    30087   -18379     
==========================================
- Hits        27248    17453    -9795     
+ Misses      18403    11192    -7211     
+ Partials     2815     1442    -1373     
Flag Coverage Δ
#e2e ?
#unittests 58.00% <41.96%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

rastislavs
rastislavs previously approved these changes Aug 5, 2020
ondrej-fabry and others added 2 commits August 5, 2020 09:08
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants