-
Notifications
You must be signed in to change notification settings - Fork 206
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
base: main
Are you sure you want to change the base?
Add L2TP support #114
Conversation
Codecov Report
@@ Coverage Diff @@
## master #114 +/- ##
======================================
Coverage 100% 100%
======================================
Files 36 36
Lines 4131 4260 +129
======================================
+ Hits 4131 4260 +129
Continue to review full report at Codecov.
|
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.
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)}, |
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.
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?
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.
Oh, how could I miss that.
Done.
Would be great to have this long awaiting feature 👍 |
Description
Adds L2TP support.
Rework of #82
Checklist
make check
successfully.make check-coverage
).