Skip to content

DOCS-2997: Document the l2Bridge network type - #2950

Open
ctauchen wants to merge 1 commit into
tigera:mainfrom
ctauchen:DOCS-2997-8-network-reference
Open

DOCS-2997: Document the l2Bridge network type#2950
ctauchen wants to merge 1 commit into
tigera:mainfrom
ctauchen:DOCS-2997-8-network-reference

Conversation

@ctauchen

@ctauchen ctauchen commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Adds the l2Bridge type to the Network resource reference. Eighth in the DOCS-2997 sequence. The vrf content is unchanged.

The Network resource now has two types, so the introduction and the spec table state that exactly one must be set and that the choice is fixed for the life of the resource. The limitations and requirements sections are scoped to vrf, with a pointer to the L2 support page, because the two types have almost nothing in common on those axes.

Fifteen new field tables cover the L2 type. Several carry semantics that a generated reference would lose, so they are stated in prose:

  • The first matching host configuration entry wins. Others are ignored for that node and entries are not merged.
  • Overlapping or duplicated VLAN entries are combined rather than rejected.
  • Several fields are one-of unions where exactly one member must be set.
  • Network, broadcast, and gateway addresses are withheld from assignment, except on a /31 or /32.

The section on an existing bridge is the densest part. It documents the three properties Calico checks, what Calico deliberately does not require, the hazard of naming a bridge with the prefix Calico treats as its own, and what happens when a requirement is not met.

Two samples are added: one for a Calico-managed bridge, and one for a user-prepared bridge with different trunk interface names on different nodes. The second is modelled on a configuration from testing rather than invented.

This is the page with the highest density of things I could get wrong, and it would benefit from a field-by-field read. In particular, please check the field names and nesting against the CRD, the accepted ranges, and whether vlans on a trunk port really defaults to carrying every VLAN the network defines.

One note: Vale will flag two pre-existing lines in the vrf section that use "dataplane" rather than "data plane". They are untouched by this PR and I left them alone rather than mixing an unrelated fix into the diff.

Changed page: https://deploy-preview-2950--calico-docs-preview-next.netlify.app/calico-enterprise/next/reference/resources/network

@ctauchen
ctauchen requested a review from a team as a code owner August 21, 2026 10:57
Copilot AI lite review requested due to automatic review settings August 21, 2026 10:57
@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 53a65e0
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6a8831c1755b620008bbd28c
😎 Deploy Preview https://deploy-preview-2950--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 53a65e0
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a8831c1226115000972b227
😎 Deploy Preview https://deploy-preview-2950--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🟢 up 3 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Updates the Calico Enterprise Network resource reference to document the new l2Bridge network type alongside the existing vrf type, including new sample YAML and detailed field-by-field reference tables for the L2 bridge configuration.

Changes:

  • Expands the introduction to explain the two Network types (l2Bridge and vrf), including immutability of the chosen type.
  • Adds L2 bridge sample manifests and a comprehensive L2BridgeSpec reference (VLANs, hostConfig, bridge requirements, trunk ports, and routes).
  • Scopes the existing Limitations/Requirements sections to vrf, with pointers to the L2 bridge support/limitations page.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +196 to +199
| Field | Description | Accepted Values | Schema |
| ----------- | ------------------------------------------------------------------------------ | --------------- | ----------------------------------------- |
| destination | CIDR prefix for this route. Use `0.0.0.0/0` for a default route. | A valid CIDR | string |
| action | What to do with traffic matching this route. Exactly one action must be set. | | [L2RouteAction](#l2routeaction) |
Add the l2Bridge type to the Network resource reference. The vrf content is
unchanged, and the limitations and requirements sections are now scoped to vrf
with a pointer to the L2 support page.

The Network resource now has two types, so the introduction and the spec table
say that exactly one must be set and that the choice is fixed for the life of
the resource.

Fifteen new field tables cover the L2 type. Several carry semantics that a
generated reference would drop: the first matching host configuration entry
wins rather than being merged, overlapping VLAN entries are combined rather
than rejected, and several fields are one-of unions.

The section on an existing bridge documents the three properties Calico checks,
what it deliberately does not require, the bridge naming hazard, and what
happens when a requirement is not met.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 21, 2026 11:08
@ctauchen
ctauchen force-pushed the DOCS-2997-8-network-reference branch from 484498b to 53a65e0 Compare August 21, 2026 11:08

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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