Interface NetworkAttachment

  • All Superinterfaces:
    Identified
    All Known Implementing Classes:
    NetworkAttachmentContainer

    public interface NetworkAttachment
    extends Identified
    Describes how a host connects to a network. An XML representation of a network attachment on a host: [source,xml] ---- true static
    192.168.122.39
    192.168.122.1 255.255.255.0 v4
    mtu 1500 1500 true bridged true true true ...
    ---- The network element, with either a `name` or an `id`, is required in order to attach a network to a network interface card (NIC). For example, to attach a network to a host network interface card, send a request like this: [source] ---- POST /ovirt-engine/api/hosts/123/nics/456/networkattachments ---- With a request body like this: [source,xml] ---- ---- To attach a network to a host, send a request like this: [source] ---- POST /ovirt-engine/api/hosts/123/networkattachments ---- With a request body like this: [source,xml] ---- ---- The `ip_address_assignments` and `properties` elements are updatable post-creation. For example, to update a network attachment, send a request like this: [source] ---- PUT /ovirt-engine/api/hosts/123/nics/456/networkattachments/789 ---- With a request body like this: [source,xml] ---- static
    7.1.1.1
    7.1.1.2 255.255.255.0 v4
    ---- To detach a network from the network interface card send a request like this: [source] ---- DELETE /ovirt-engine/api/hosts/123/nics/456/networkattachments/789 ---- IMPORTANT: Changes to network attachment configuration must be explicitly committed. An XML representation of a network attachment's `properties` sub-collection: [source, xml] ---- bridge_opts forward_delay=1500 group_fwd_mask=0x0 multicast_snooping=1 ... ----
    • Method Detail

      • dnsResolverConfigurationPresent

        boolean dnsResolverConfigurationPresent()
      • inSync

        boolean inSync()
      • inSyncPresent

        boolean inSyncPresent()
      • ipAddressAssignmentsPresent

        boolean ipAddressAssignmentsPresent()
      • propertiesPresent

        boolean propertiesPresent()
      • reportedConfigurationsPresent

        boolean reportedConfigurationsPresent()
      • hostPresent

        boolean hostPresent()
      • hostNicPresent

        boolean hostNicPresent()
      • networkPresent

        boolean networkPresent()
      • qos

        Qos qos()
      • qosPresent

        boolean qosPresent()