Skip to content

Commit d5d9b12

Browse files
authored
Merge pull request #93737 from dfitzmau/OCPBUGS-56684
OCPBUGS#56684: Documented the mac-address property for the virt-creat…
2 parents ca221b5 + ee75bb5 commit d5d9b12

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

modules/virt-creating-infiniband-interface-on-nodes.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ spec:
4848
enabled: false
4949
name: ibp27s0
5050
state: up
51-
type: infiniband <3>
51+
identifier: mac-address <3>
52+
mac-address: 20:00:55:04:01:FE:80:00:00:00:00:00:00:00:02:C9:02:00:23:13:92 <4>
53+
type: infiniband <5>
5254
# ...
5355
----
5456
<1> `datagram` is the default mode for an IPoIB interface, and this mode improves optimizes performance and latency. `connected` mode is a supported mode but consider only using this mode when you need to adjust the maximum transmission unit (MTU) value to improve node connectivity with surrounding network devices.
5557
<2> Supports a string or an integer value. The parameter defines the protection key, or _P-key_, for the interface for the purposes of authentication and encrypted communications with a third-party vendor, such as NVIDIA. Values `None` and `0xffff` indicate the protection key for the base interface in an InfiniBand system.
56-
<3> Sets the type of interface to `infiniband `.
58+
<3> Supported values include `name`, the default value, and `mac-address`. The `name` value applies a configuration to an interface that holds a specified interface name.
59+
<4> Holds the MAC address of an interface. For an IP-over-InfiniBand (IPoIB) interface, the address is a 20-byte string.
60+
<5> Sets the type of interface to `infiniband`.
5761

5862
. Apply the NNCP configuration to each node in your cluster by running the following command. The Kubernetes NMState Operator can then create an IPoIB interface on each node.
5963
+

modules/virt-example-nmstate-IP-management.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,34 @@ The following snippet configures an Ethernet interface that uses a dynamic IP ad
9393
# ...
9494
----
9595

96+
[id="virt-example-nmstate-IP-management-mac_{context}"]
97+
== Media Access Control (MAC) address
98+
99+
You can use a MAC address to identify a network interface instead of using the name of the network interface. A network interface name can change for various reasons, such as an operating system configuration change. However, every network interface has a unique MAC address that does not change. This means that using a MAC address is a more permanent way to identify a specific network interface.
100+
101+
Supported values for the `identifier` parameter include the default `name` value and the value `mac-address`. The `name` value applies a configuration to an interface that holds a specified interface name.
102+
103+
Using a `mac-address` value for the `identifier` parameter indicates that a MAC address is the identifier for the network interface. If you set the `identifier` value to `mac-address`, you must enter a specific MAC address in the following `mac-address` parameter field.
104+
105+
[NOTE]
106+
====
107+
You can still specify a value for the `name` parameter, but setting the `identifier: mac-address` value means that a MAC address is used as the primary identifier for a network interface. If you specify an incorrect MAC address, `nmstate` reports an invalid argument error.
108+
====
109+
110+
The following snippet specifies a MAC address as the primary identifier for an Ethernet device, named `eth1`, with a MAC address of `8A:8C:92:1A:F6:98`:
111+
112+
[source,yaml]
113+
----
114+
# ...
115+
interfaces:
116+
- name: eth1
117+
profile-name: wan0
118+
type: ethernet
119+
state: up
120+
identifier: mac-address
121+
mac-address: 8A:8C:92:1A:F6:98
122+
# ...
123+
----
96124

97125
[id="virt-example-nmstate-IP-management-dns_{context}"]
98126
== DNS

0 commit comments

Comments
 (0)