Skip to content

GRE tunnel developer documentation - #3715

Open
ipspace wants to merge 1 commit into
devfrom
dev-tunnel-gre
Open

GRE tunnel developer documentation#3715
ipspace wants to merge 1 commit into
devfrom
dev-tunnel-gre

Conversation

@ipspace

@ipspace ipspace commented Jul 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying netlab with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8bfc59d
Status: ✅  Deploy successful!
Preview URL: https://b0ef9235.netlab.pages.dev
Branch Preview URL: https://dev-tunnel-gre.netlab.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds configuration-template developer documentation for the tunnel.gre extra plugin, describing the GRE tunnel data model, transformation behavior, and example templates, and wires it into the config-dev documentation ToC.

Changes:

  • Added new developer documentation page for GRE tunnels (tunnel.gre plugin), including data model and template examples.
  • Added the new page to docs/dev/config/index.md so it appears in the configuration developer docs ToC.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/dev/config/tunnel.gre.md New developer documentation for GRE tunnel configuration templates, including attributes, transforms, and examples.
docs/dev/config/index.md Adds the GRE tunnel doc page to the config developer docs index/ToC.
Comments suppressed due to low confidence (2)

docs/dev/config/tunnel.gre.md:68

  • The GRE plugin pre_transform hook sets link.type = 'tunnel'; it does not directly set intf.type. The interface type becomes tunnel later during link/interface transformation, so this bullet is slightly inaccurate.
* **type** set to `tunnel` during `pre_transform`.

docs/dev/config/tunnel.gre.md:128

  • _tunnel.set_tunnel_type(topology) sets type: tunnel on any link that has a tunnel.mode attribute (regardless of the specific mode value), so this description is narrower than the actual behavior.
1. **`_tunnel.set_tunnel_type(topology)`** -- marks all links with `tunnel.mode: gre` as `type: tunnel`.

Comment on lines +50 to +53
4. If `tunnel.source.link.name` is set, the interface name must match.
5. If `tunnel.source.link.role` is set, the interface or its link role must match.
6. If `tunnel.af` is set, only interfaces with a numbered address in that address family are considered.
7. Otherwise, only interfaces with at least one numbered IPv4 or IPv6 address are considered.
* **type** (string) -- source interface type. Currently, only `loopback` is supported as a valid value.
* **link.name** (string) -- select the source interface by its link name.
* **link.role** (string) -- select the source interface by its link role.
* **ifindex** (integer) -- specify the source interface ifindex directly (rarely needed).
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