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

Add L2TP support #114

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add L2TP support #114

wants to merge 3 commits into from

Conversation

lxnt
Copy link
Contributor

@lxnt lxnt commented Dec 4, 2019

Description

Adds L2TP support.

Rework of #82

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Closes an open bug in Launchpad.

@codecov-io
Copy link

codecov-io commented Dec 4, 2019

Codecov Report

Merging #114 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #114    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files          36     36            
  Lines        4131   4260   +129     
======================================
+ Hits         4131   4260   +129
Impacted Files Coverage Δ
src/validation.c 100% <100%> (ø) ⬆️
src/parse.c 100% <100%> (ø) ⬆️
tests/generator/test_tunnels.py 100% <100%> (ø) ⬆️
src/networkd.c 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50ac74f...970d97e. Read the comment docs.

Copy link
Contributor

@cyphermox cyphermox left a comment

Choose a reason for hiding this comment

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

I've asked vorlon to give his review specific to the naming of new keys and how this fits in a broader view of the netplan syntax.

src/parse.c Outdated
@@ -1624,6 +1631,22 @@ const mapping_entry_handler tunnel_def_handlers[] = {
*/
{"key", YAML_NO_NODE, handle_tunnel_key_mapping},
{"keys", YAML_NO_NODE, handle_tunnel_key_mapping},

/* l2tp; reuses tunnel.local_ip and tunnel.remote_ip*/
{"local_tunnel_id", YAML_SCALAR_NODE, handle_netdef_guint, NULL, netdef_offset(l2tp.local_tunnel_id)},
Copy link
Contributor

Choose a reason for hiding this comment

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

Names for keys are typically split with hyphen rather than underscore. Could you please adjust that so things are at least consistent in that regard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, how could I miss that.
Done.

src/parse.h Show resolved Hide resolved
@slyon slyon added enhancement New feature or request schema change This PR includes a change to netplan's YAML schema, which needs sign-off labels Apr 27, 2020
@slyon slyon added the community This PR has been proposed by somebody outside of the Netplan team and roadmap commitments. label Aug 16, 2023
@david-barbion
Copy link

Would be great to have this long awaiting feature 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community This PR has been proposed by somebody outside of the Netplan team and roadmap commitments. enhancement New feature or request schema change This PR includes a change to netplan's YAML schema, which needs sign-off
Projects
None yet
6 participants