|
| 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. |
0 commit comments