mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/node_network/virt-updating-node-network-config.adoc
|
|
|
|
[id="virt-restoring-node-network-configuration_{context}"]
|
|
= Restoring node network configuration after removing an interface
|
|
|
|
Removing an interface from a node does not automatically restore the node network configuration to a previous state. After you remove an interface, any of the node NICs throughout the cluster that were previously attached or subordinate to the interface are placed in a `down` state. Restore the NICs by applying a new `NodeNetworkConfigurationPolicy` manifest to the cluster.
|
|
|
|
.Procedure
|
|
|
|
. Create a `NodeNetworkConfigurationPolicy` manifest that specifies the NIC and the desired state of `up`:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: nmstate.io/v1alpha1
|
|
kind: NodeNetworkConfigurationPolicy
|
|
metadata:
|
|
name: eth1
|
|
spec:
|
|
desiredState:
|
|
interfaces:
|
|
- name: eth1
|
|
type: ethernet
|
|
state: up
|
|
ipv4:
|
|
dhcp: true
|
|
enabled: true
|
|
----
|
|
|
|
. Apply the manifest to the cluster:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f <eth1.yaml> <1>
|
|
----
|
|
<1> File name of the Policy manifest.
|