Skip to content

Commit 49cf0de

Browse files
author
Steven Smith
committed
Updates misleading example on ONVK additional network config
1 parent ee39eb0 commit 49cf0de

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

modules/configuration-ovnk-network-plugin-json-object.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ The following table describes the configuration parameters for the OVN-Kubernete
1515

1616
|`name`
1717
|`string`
18-
|The name of the network. This value must be unique across all `NetworkAttachmentDefinitions`. Failure to make this attribute unique might result in the merging of two networks with the same name. Merging two networks by sharing similar names is unsupported.
18+
|The name of the network. These networks are not namespaced. For example, you can have a network named
19+
`l2-network` referenced from two different `NetworkAttachmentDefinitions` that exist on two different
20+
namespaces. This ensures that pods making use of the `NetworkAttachmentDefinition` on their own different
21+
namespaces can communicate over the same secondary network. However, those two different `NetworkAttachmentDefinitions` must also share the same network specific parameters such as `topology`, `subnets`, `mtu`, and `excludeSubnets`.
1922

2023
|`type`
2124
|`string`
@@ -37,7 +40,8 @@ For `"topology":"layer2"` deployments, IPv6 (`2001:DBB::/64`) and dual-stack (`1
3740

3841
|`netAttachDefName`
3942
|`string`
40-
| The namespace and the network attachment name. The value must match the values specified for `namespace` and `name` when defining the network attachment definition object. For example, `ns1/l2-network` refers to the `ns1` namespace and the `l2-network` network attachment definition name.
43+
|The metadata `namespace` and `name` of the network attachment definition object where this
44+
configuration is included. For example, if this configuration is defined in a `NetworkAttachmentDefinition` in namespace `ns1` named `l2-network`, this should be set to `ns1/l2-network`.
4145

4246
|`excludeSubnets`
4347
|`string`

modules/configuring-layer-two-switched-topology.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following `NetworkAttachmentDefinition` custom resource definition (CRD) YAM
1919
----
2020
{
2121
"cniVersion": "0.3.1",
22-
"name": "ns1-l2-network",
22+
"name": "l2-network",
2323
"type": "ovn-k8s-cni-overlay",
2424
"topology":"layer2",
2525
"subnets": "10.100.200.0/24",

0 commit comments

Comments
 (0)