Skip to content

Commit af41f2f

Browse files
author
Shubha Narayanan
committed
Adding nncp from console
1 parent 04ad14b commit af41f2f

8 files changed

+134
-3
lines changed

images/fa-minus-circle.svg

Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
:_content-type: PROCEDURE
2+
[id="virt-create-node-network-config-console_{context}"]
3+
= Creating a policy
4+
5+
You can create a policy by using either a form or YAML in the web console.
6+
7+
.Procedure
8+
. Navigate to *Networking**NodeNetworkConfigurationPolicy*.
9+
10+
. In the *NodeNetworkConfigurationPolicy* page, click *Create*, and select *From Form* option.
11+
+
12+
In case there are no existing policies, you can alternatively click *Create NodeNetworkConfigurationPolicy* to createa policy using form.
13+
+
14+
[NOTE]
15+
====
16+
To create policy using YAML, click *Create*, and select *With YAML* option. The following steps are applicable to create a policy only by using form.
17+
====
18+
19+
. Optional: Check the *Apply this NodeNetworkConfigurationPolicy only to specific subsets of nodes using the node selector* checkbox to specify the nodes where the policy must be applied.
20+
21+
. Enter the policy name in the *Policy name* field.
22+
23+
. Optional: Enter the description of the policy in the *Description* field.
24+
25+
. Optional: In the *Policy Interface(s)* section, a bridge interface is added by default with preset values in editable fields. Edit the values by executing the following steps:
26+
27+
.. Enter the name of the interface in *Interface name* field.
28+
29+
.. Select the network state from *Network state* dropdown. The default selected value is *Up*.
30+
31+
.. Select the type of interface from *Type* dropdown. The available values are *Bridge*, *Bonding*, and *Ethernet*. The default selected value is *Bridge*.
32+
+
33+
[NOTE]
34+
====
35+
Addition of a VLAN interface by using the form is not supported. To add a VLAN interface, you must use YAML to create the policy. Once added, you cannot edit the policy by using form.
36+
====
37+
38+
.. Optional: In the IP configuration section, check *IPv4* checkbox to assign an IPv4 address to the interface, and configure the IP address assignment details:
39+
40+
... Click *IP address* to configure the interface with a static IP address, or *DHCP* to auto-assign an IP address.
41+
42+
... If you have selected *IP address* option, enter the IPv4 address in *IPV4 address* field, and enter the prefix length in *Prefix length* field.
43+
+
44+
If you have selected *DHCP* option, uncheck the options that you want to disable. The available options are *Auto-DNS*, *Auto-routes*, and *Auto-gateway*. All the options are selected by default.
45+
46+
.. Optional: Enter the port number in *Port* field.
47+
48+
.. Optional: Check the checkbox *Enable STP* to enable STP.
49+
50+
.. Optional: To add an interface to the policy, click *Add another interface to the policy*.
51+
52+
.. Optional: To remove an interface from the policy, click image:fa-minus-circle.svg[minus] icon next to the interface.
53+
54+
+
55+
[NOTE]
56+
====
57+
Alternatively, you can click *Edit YAML* on the top of the page to continue editing the form using YAML.
58+
====
59+
60+
. Click *Create* to complete policy creation.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:_content-type: PROCEDURE
2+
[id="virt-delete-node-network-config_{context}"]
3+
= Deleting the policy
4+
5+
.Procedure
6+
. Navigate to *Networking**NodeNetworkConfigurationPolicy*.
7+
8+
. In the *NodeNetworkConfigurationPolicy* page, click the {kebab} icon placed next to the policy you want to delete, and click *Delete*.
9+
10+
. In the pop-up window, enter the policy name to confirm deletion, and click *Delete*.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:_content-type: REFERENCE
2+
[id="virt-monitor-node-network-config-console_{context}"]
3+
= Monitoring the policy status
4+
5+
You can monitor the policy status from the *NodeNetworkConfigurationPolicy* page. This page displays all the policies created in the cluster in a tabular format, with the following columns:
6+
7+
Name:: The name of the policy created.
8+
9+
Matched nodes:: The count of nodes where the policies are applied. This could be either a subset of nodes based on the node selector or all the nodes on the cluster.
10+
11+
Node network state:: The enactment state of the matched nodes. You can click on the enactment state and view detailed information on the status.
12+
13+
To find the desired policy, you can filter the list either based on enactment state by using the *Filter* option, or by using the search option.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:_content-type: CONCEPT
2+
[id="virt-node-network-config-console_{context}"]
3+
= Managing policy from the web console
4+
You can manage the policy from the web console by accessing the list of created policies in *NodeNetworkConfigurationPolicy* page under *Networking* menu. This page enables you to create, update, monitor, and delete the policies.
5+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:_content-type: PROCEDURE
2+
[id="virt-update-node-network-config-form_{context}"]
3+
= Updating the policy by using form
4+
5+
.Procedure
6+
. Navigate to *Networking**NodeNetworkConfigurationPolicy*.
7+
8+
. In the *NodeNetworkConfigurationPolicy* page, click the {kebab} icon placed next to the policy you want to edit, and click *Edit*.
9+
10+
. Edit the fields that you want to update.
11+
12+
. Click *Save*.
13+
14+
[NOTE]
15+
====
16+
Addition of a VLAN interface using the form is not supported. To add a VLAN interface, you must use YAML to create the policy. Once added, you cannot edit the policy using form.
17+
====
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:_content-type: PROCEDURE
2+
[id="virt-update-node-network-config-yaml_{context}"]
3+
= Updating the policy by using YAML
4+
5+
.Procedure
6+
. Navigate to *Networking**NodeNetworkConfigurationPolicy*.
7+
8+
. In the *NodeNetworkConfigurationPolicy* page, click the policy name under the *Name* column for the policy you want to edit.
9+
10+
. Click the *YAML* tab, and edit the YAML.
11+
12+
. Click *Save*.

networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,29 @@ You can update the node network configuration, such as adding or removing interf
1111

1212
include::modules/virt-about-nmstate.adoc[leveloffset=+1]
1313

14-
include::modules/virt-creating-interface-on-nodes.adoc[leveloffset=+1]
14+
15+
include::modules/virt-node-network-config-console.adoc[leveloffset=+1]
16+
include::modules/virt-monitor-node-network-config-console.adoc[leveloffset=+2]
17+
include::modules/virt-create-node-network-config-console.adoc[leveloffset=+2]
18+
19+
=== Updating the policy
20+
include::modules/virt-update-node-network-config-form.adoc[leveloffset=+3]
21+
include::modules/virt-update-node-network-config-yaml.adoc[leveloffset=+3]
22+
include::modules/virt-delete-node-network-config.adoc[leveloffset=+2]
23+
24+
[id="virt-manage-nncp-cli"]
25+
== Managing policy by using the CLI
26+
include::modules/virt-creating-interface-on-nodes.adoc[leveloffset=+2]
1527

1628
[discrete]
1729
[role="_additional-resources"]
1830
== Additional resources
1931
* xref:../../networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc#virt-example-nmstate-multiple-interfaces_{context}[Example for creating multiple interfaces in the same policy]
2032
* xref:../../networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc#virt-example-nmstate-IP-management_{context}[Examples of different IP management methods in policies]
2133

22-
include::modules/virt-confirming-policy-updates-on-nodes.adoc[leveloffset=+1]
34+
include::modules/virt-confirming-policy-updates-on-nodes.adoc[leveloffset=+2]
2335

24-
include::modules/virt-removing-interface-from-nodes.adoc[leveloffset=+1]
36+
include::modules/virt-removing-interface-from-nodes.adoc[leveloffset=+2]
2537

2638
[id="virt-nmstate-example-policy-configurations"]
2739
== Example policy configurations for different interfaces

0 commit comments

Comments
 (0)