2. Adding Network Labels to Host Network Interfaces
Using network labels allows you to greatly simplify the administrative workload associated with assigning logical networks to host network interfaces. Setting a label on a role network (for instance, a migration network or a display network) causes a mass deployment of that network on all hosts. Such mass additions of networks are achieved through the use of DHCP. This method of mass deployment was chosen over a method of typing in static addresses, because of the unscalable nature of the task of typing in many static IP addresses.
There are two methods of adding labels to a host network interface:
- Manually, in the Administration Portal
- Automatically, with the LLDP Labeler service
Adding Network Labels in the Administration Portal
- Click → .
- Click the host’s name. This opens the details view.
- Click the Network Interfaces tab.
- Click Setup Host Networks.
- Click Labels and right-click [New Label]. Select a physical network interface to label.
- Enter a name for the network label in the Label text field.
- Click .
Adding Network Labels with the LLDP Labeler Service
You can automate the process of assigning labels to host network interfaces in the configured list of clusters with the LLDP Labeler service.
By default, LLDP Labeler runs as an hourly service. This option is useful if you make hardware changes (for example, NICs, switches, or cables) or change switch configurations.
- The interfaces must be connected to a Juniper switch.
The Juniper switch must be configured to provide the
Port VLANusing LLDP.
username- the username of the Manager administrator. The default is
password- the password of the Manager administrator. The default is
Configure the LLDP Labeler service by updating the following values in
clusters- a comma-separated list of clusters on which the service should run. Wildcards are supported. For example,
Cluster*defines LLDP Labeler to run on all clusters starting with word
Cluster. To run the service on all clusters in the data center, type
*. The default is
api_url- the full URL of the Manager’s API. The default is
ca_file- the path to the custom CA certificate file. Leave this value empty if you do not use custom certificates. The default is empty.
auto_bonding- enables LLDP Labeler’s bonding capabilities. The default is
auto_labeling- enables LLDP Labeler’s labeling capabilities. The default is
Optionally, you can configure the service to run at a different time interval by changing the value of
etc/ovirt-lldp-labeler/conf.d/ovirt-lldp-labeler.timer. The default is
Configure the service to start now and at boot by entering the following command:
# systemctl enable --now ovirt-lldp-labeler
To invoke the service manually, enter the following command:
# /usr/bin/python /usr/share/ovirt-lldp-labeler/ovirt_lldp_labeler_cli.py
You have added a network label to a host network interface. Newly created logical networks with the same label are automatically assigned to all host network interfaces with that label. Removing a label from a logical network automatically removes that logical network from all host network interfaces with that label.