Skip to content

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

Merged
ctauchen merged 2 commits into
tigera:mainfrom
ctauchen:DOCS-2997-8-network-reference
Aug 21, 2026
Merged

DOCS-2997: Document the l2Bridge network type#2950
ctauchen merged 2 commits into
tigera:mainfrom
ctauchen:DOCS-2997-8-network-reference

Conversation

@ctauchen

@ctauchenctauchen 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 ownerAugust 21, 2026 10:57
CopilotAI lite review requested due to automatic review settings August 21, 2026 10:57
@netlify

netlifyBot commented Aug 21, 2026

Copy link
Copy Markdown

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

NameLink
🔨 Latest commit1a6b92e
🔍 Latest deploy loghttps://app.netlify.com/projects/calico-docs-preview-next/deploys/6a885784f8e6b0000813a214
😎 Deploy Previewhttps://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 changesRun an agent on this branch

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

@netlify

netlifyBot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

NameLink
🔨 Latest commit1a6b92e
🔍 Latest deploy loghttps://app.netlify.com/projects/tigera/deploys/6a8857841f57310008bf2ce5
😎 Deploy Previewhttps://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: 70 (🔴 down 4 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 changesRun an agent on this branch

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

CopilotAI 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>
CopilotAI review requested due to automatic review settings August 21, 2026 11:08
@ctauchen
ctauchenforce-pushed the DOCS-2997-8-network-reference branch from 484498b to 53a65e0CompareAugust 21, 2026 11:08

CopilotAI 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.

Add a comment at the top of the page naming the user story it exists to serve.
The page also holds the bridge configuration contract that the prepared-bridge
guide points at, so the requirements are stated in one place and referenced
rather than repeated. That is recorded as subsidiary.
Note that the story applies to the L2 sections added for DOCS-2997. The VRF
sections predate this work.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings August 21, 2026 13:49

CopilotAI 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.

Suppressed comments (1)

calico-enterprise/reference/resources/network.mdx:194

  • Minor grammar: add a comma after the /32 clause to avoid the sentence reading as a run-on.
On a `/31` or `/32` no addresses are reserved, because those prefixes have no network or broadcast address to withhold.

@ctauchen
ctauchen merged commit f2a2762 into tigera:mainAug 21, 2026
11 checks passed
Sign up for freeto 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.

3 participants

@ctauchen@fasaxc