Skip to content

[FRR] Move FRR GRE tunnel netdev setup into plugin initial templates#3585

Closed
jbemmel wants to merge 1 commit into
ipspace:devfrom
jbemmel:feature/frr-gre-initial
Closed

[FRR] Move FRR GRE tunnel netdev setup into plugin initial templates#3585
jbemmel wants to merge 1 commit into
ipspace:devfrom
jbemmel:feature/frr-gre-initial

Conversation

@jbemmel

@jbemmel jbemmel commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Include tunnel plugin frr.initial.j2 snippets from the FRR initial config, create GRE interfaces there instead of the module deploy script, and apply IPv6 sysctl settings to tunnel interfaces during initial configuration.

Mirrors the VyOS pattern, preparing for #3569

./device-module-test -d frr tunnel still passes for both clab and libvirt

Include tunnel plugin frr.initial.j2 snippets from the FRR initial config,
create GRE interfaces there instead of the module deploy script, and apply
IPv6 sysctl settings to tunnel interfaces during initial configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jbemmel jbemmel requested a review from ipspace July 6, 2026 15:02
@ipspace

ipspace commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Why do you think this is needed? Also, did you try creating wireguard tunnels in the custom configuration template?

@jbemmel

jbemmel commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

Why do you think this is needed?

It's needed to unify the treatment of interfaces. For example, MTU, IPv6 and RA settings aren't currently being applied to GRE tunnels, nor 'shutdown' flags.

The creation of devices is module or plugin specific, but once they're created certain common settings need to be applied consistently.

In case of WireGuard tunnels, configuring the keys early in the process also helps to reduce error logs of things like OSPF trying to do discovery over tunnels that are still down. It's not fool proof, but I think it's more consistent.

I separated this PR from the broader WireGuard PR because I figured you might prefer a small incremental change

@ipspace

ipspace commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Why do you think this is needed?

It's needed to unify the treatment of interfaces.

I'm all for unified treatment, but why do you think the right solution is to include templates into initial device configuration? After all, VLANs have correct MTU on FRR ;)

The creation of devices is module or plugin specific, but once they're created certain common settings need to be applied consistently.

And we have a solution for that. Someone used it to configure IP address on SR Linux VLAN interfaces.

In case of WireGuard tunnels, configuring the keys early in the process also helps to reduce error logs of things like OSPF trying to do discovery over tunnels that are still down. It's not fool proof, but I think it's more consistent.

If you create the tunnel and configure keys in the same place, you won't have that problem. OSPF will not try to do discovery over a missing interface.

I separated this PR from the broader WireGuard PR because I figured you might prefer a small incremental change

Nothing wrong with that. It's just the wrong change ;)

You know what, now that I understand what's bothering you (and it's a valid concern), I'll clean up this stuff.

@jbemmel

jbemmel commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #3589

@jbemmel jbemmel closed this Jul 7, 2026
@jbemmel jbemmel deleted the feature/frr-gre-initial branch July 7, 2026 14:08
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