All Downloads are FREE. Search and download functionalities are using the official Maven repository.

types.Nic Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
/*
Copyright (c) 2015 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package types;

import org.ovirt.api.metamodel.annotations.Link;
import org.ovirt.api.metamodel.annotations.Type;

/**
 * Represents a NIC of a virtual machine.
 *
 * For example, the XML representation of a NIC will look like this:
 *
 * [source,xml]
 * ----
 * 
 *   nic1
 *   
 *   virtio
 *   true
 *   
 *     
02:00:00:00:00:00
*
* true * *
* ---- * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ @Type public interface Nic extends Device { /** * Defines if the NIC is linked to the virtual machine. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ Boolean linked(); /** * The type of driver used for the NIC. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ NicInterface _interface(); /** * The MAC address of the interface. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ Mac mac(); /** * Defines if the NIC is plugged in to the virtual machine. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ Boolean plugged(); BootProtocol bootProtocol(); Boolean onBoot(); /** * A reference to the network which the interface should be connected to. A blank network id is allowed. * * Usage of this element for creating or updating a NIC is deprecated, use `vnic_profile` instead. It is preserved * because it is still in use by the `initialization` element, as a holder for IP addresses and other network * details. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ @Link Network network(); /** * A link to the statistics for the NIC. * * @author Martin Mucha * @date 14 Sep 2016 * @status added */ @Link Statistic[] statistics(); @Link VnicProfile vnicProfile(); @Link NetworkLabel[] networkLabels(); @Link NetworkAttachment[] networkAttachments(); @Link NetworkLabel[] virtualFunctionAllowedLabels(); @Link Network[] virtualFunctionAllowedNetworks(); @Link ReportedDevice[] reportedDevices(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy