mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Rename iterface type='dummy' to type='null'
When commit bac6b266fb
added this "functionality" this was the only
naming I could think of, but after discussion with Dan we found the name
'null' fits a bit better, so change it before we make a release with the
old name.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
56b3ee7439
commit
6457619d18
2
NEWS.rst
2
NEWS.rst
@ -26,7 +26,7 @@ v8.7.0 (unreleased)
|
|||||||
|
|
||||||
* esx: Domain XMLs can now be dumped for VMs with two new interface types
|
* esx: Domain XMLs can now be dumped for VMs with two new interface types
|
||||||
|
|
||||||
One is when the interface is not connected anywhere `type='dummy'` and one
|
One is when the interface is not connected anywhere `type='null'` and one
|
||||||
when it is connected to VMWare Distributed Switch `type='vds'`.
|
when it is connected to VMWare Distributed Switch `type='vds'`.
|
||||||
|
|
||||||
* **Bug fixes**
|
* **Bug fixes**
|
||||||
|
@ -5240,7 +5240,7 @@ which the UDP socket packets will originate from the QEMU host. :since:`Since
|
|||||||
</devices>
|
</devices>
|
||||||
...
|
...
|
||||||
|
|
||||||
Dummy network interface
|
Null network interface
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
An unconnected network interface sounds pretty pointless, but can show up for
|
An unconnected network interface sounds pretty pointless, but can show up for
|
||||||
@ -5251,7 +5251,7 @@ example with VMWare without any specified network to be connected to.
|
|||||||
|
|
||||||
...
|
...
|
||||||
<devices>
|
<devices>
|
||||||
<interface type='dummy'>
|
<interface type='null'>
|
||||||
<mac address='52:54:00:22:c9:42'/>
|
<mac address='52:54:00:22:c9:42'/>
|
||||||
</interface>
|
</interface>
|
||||||
</devices>
|
</devices>
|
||||||
|
@ -301,7 +301,7 @@ virCHMonitorBuildNetJson(virJSONValue *nets,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
default:
|
default:
|
||||||
|
@ -573,7 +573,7 @@ VIR_ENUM_IMPL(virDomainNet,
|
|||||||
"hostdev",
|
"hostdev",
|
||||||
"udp",
|
"udp",
|
||||||
"vdpa",
|
"vdpa",
|
||||||
"dummy",
|
"null",
|
||||||
"vds",
|
"vds",
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -2497,7 +2497,7 @@ virDomainActualNetDefFree(virDomainActualNetDef *def)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -2629,7 +2629,7 @@ virDomainNetDefFree(virDomainNetDef *def)
|
|||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
||||||
case VIR_DOMAIN_NET_TYPE_USER:
|
case VIR_DOMAIN_NET_TYPE_USER:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -9360,7 +9360,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt,
|
|||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
||||||
case VIR_DOMAIN_NET_TYPE_USER:
|
case VIR_DOMAIN_NET_TYPE_USER:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -9539,7 +9539,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt,
|
|||||||
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
break;
|
break;
|
||||||
@ -23746,7 +23746,7 @@ virDomainNetDefFormat(virBuffer *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_USER:
|
case VIR_DOMAIN_NET_TYPE_USER:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -28362,7 +28362,7 @@ virDomainNetGetActualVirtPortProfile(const virDomainNetDef *iface)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -28377,7 +28377,7 @@ virDomainNetGetActualVirtPortProfile(const virDomainNetDef *iface)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
default:
|
default:
|
||||||
@ -29375,7 +29375,7 @@ virDomainNetTypeSharesHostView(const virDomainNetDef *net)
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -29638,7 +29638,7 @@ virDomainNetDefActualToNetworkPort(virDomainDef *dom,
|
|||||||
case VIR_DOMAIN_NET_TYPE_USER:
|
case VIR_DOMAIN_NET_TYPE_USER:
|
||||||
case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
|
case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unexpected network port type %s"),
|
_("Unexpected network port type %s"),
|
||||||
|
@ -939,7 +939,7 @@ typedef enum {
|
|||||||
VIR_DOMAIN_NET_TYPE_HOSTDEV,
|
VIR_DOMAIN_NET_TYPE_HOSTDEV,
|
||||||
VIR_DOMAIN_NET_TYPE_UDP,
|
VIR_DOMAIN_NET_TYPE_UDP,
|
||||||
VIR_DOMAIN_NET_TYPE_VDPA,
|
VIR_DOMAIN_NET_TYPE_VDPA,
|
||||||
VIR_DOMAIN_NET_TYPE_DUMMY,
|
VIR_DOMAIN_NET_TYPE_NULL,
|
||||||
VIR_DOMAIN_NET_TYPE_VDS,
|
VIR_DOMAIN_NET_TYPE_VDS,
|
||||||
|
|
||||||
VIR_DOMAIN_NET_TYPE_LAST
|
VIR_DOMAIN_NET_TYPE_LAST
|
||||||
|
@ -295,7 +295,7 @@ bool virNetDevSupportsBandwidth(virDomainNetType type)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
|
@ -3435,7 +3435,7 @@
|
|||||||
|
|
||||||
<group>
|
<group>
|
||||||
<attribute name="type">
|
<attribute name="type">
|
||||||
<value>dummy</value>
|
<value>null</value>
|
||||||
</attribute>
|
</attribute>
|
||||||
<ref name="interface-options"/>
|
<ref name="interface-options"/>
|
||||||
</group>
|
</group>
|
||||||
|
@ -1395,7 +1395,7 @@ libxlMakeNic(virDomainDef *def,
|
|||||||
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
|
@ -1677,7 +1677,7 @@ xenFormatNet(virConnectPtr conn,
|
|||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_USER:
|
case VIR_DOMAIN_NET_TYPE_USER:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Unsupported net type '%s'"),
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Unsupported net type '%s'"),
|
||||||
virDomainNetTypeToString(net->type));
|
virDomainNetTypeToString(net->type));
|
||||||
|
@ -422,7 +422,7 @@ static int virLXCControllerGetNICIndexes(virLXCController *ctrl)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported net type %s"),
|
_("Unsupported net type %s"),
|
||||||
|
@ -3465,7 +3465,7 @@ lxcDomainAttachDeviceNetLive(virLXCDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Network device type is not supported"));
|
_("Network device type is not supported"));
|
||||||
@ -3522,7 +3522,7 @@ lxcDomainAttachDeviceNetLive(virLXCDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
default:
|
default:
|
||||||
@ -3966,7 +3966,7 @@ lxcDomainDetachDeviceNetLive(virDomainObj *vm,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Only bridged veth devices can be detached"));
|
_("Only bridged veth devices can be detached"));
|
||||||
|
@ -596,7 +596,7 @@ virLXCProcessSetupInterfaces(virLXCDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
@ -1609,7 +1609,7 @@ virLXCProcessReconnectNotifyNets(virDomainDef *def)
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
|
@ -3961,7 +3961,7 @@ qemuBuildHostNetProps(virDomainNetDef *net)
|
|||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
/* Should have been handled earlier via PCI/USB hotplug code. */
|
/* Should have been handled earlier via PCI/USB hotplug code. */
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -8182,7 +8182,7 @@ qemuBuildInterfaceConnect(virDomainObj *vm,
|
|||||||
case VIR_DOMAIN_NET_TYPE_MCAST:
|
case VIR_DOMAIN_NET_TYPE_MCAST:
|
||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -8281,7 +8281,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_MCAST:
|
case VIR_DOMAIN_NET_TYPE_MCAST:
|
||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
/* nada */
|
/* nada */
|
||||||
@ -8321,7 +8321,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
/* These types don't use a network device on the host, but
|
/* These types don't use a network device on the host, but
|
||||||
|
@ -9784,7 +9784,7 @@ qemuDomainNetSupportsMTU(virDomainNetType type)
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
|
@ -1230,7 +1230,7 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_MCAST:
|
case VIR_DOMAIN_NET_TYPE_MCAST:
|
||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||||
@ -3387,7 +3387,7 @@ qemuDomainChangeNetFilter(virDomainObj *vm,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("filters not supported on interfaces of type %s"),
|
_("filters not supported on interfaces of type %s"),
|
||||||
@ -3740,7 +3740,7 @@ qemuDomainChangeNet(virQEMUDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
|
case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||||
_("unable to change config on '%s' network type"),
|
_("unable to change config on '%s' network type"),
|
||||||
|
@ -118,7 +118,7 @@ qemuInterfaceStartDevice(virDomainNetDef *net)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
/* these types all require no action */
|
/* these types all require no action */
|
||||||
@ -206,7 +206,7 @@ qemuInterfaceStopDevice(virDomainNetDef *net)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
/* these types all require no action */
|
/* these types all require no action */
|
||||||
|
@ -3261,7 +3261,7 @@ qemuProcessNotifyNets(virDomainDef *def)
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
@ -8263,7 +8263,7 @@ void qemuProcessStop(virQEMUDriver *driver,
|
|||||||
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
case VIR_DOMAIN_NET_TYPE_HOSTDEV:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
/* No special cleanup procedure for these types. */
|
/* No special cleanup procedure for these types. */
|
||||||
|
@ -1760,7 +1760,7 @@ qemuValidateNetSupportsCoalesce(virDomainNetType type)
|
|||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
|
@ -2880,7 +2880,7 @@ virVMXParseEthernet(virConf *conf, int controller, virDomainNetDef **def)
|
|||||||
false) < 0)
|
false) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (connectionType == NULL && networkName == NULL) {
|
} else if (connectionType == NULL && networkName == NULL) {
|
||||||
(*def)->type = VIR_DOMAIN_NET_TYPE_DUMMY;
|
(*def)->type = VIR_DOMAIN_NET_TYPE_NULL;
|
||||||
} else if (connectionType == NULL || STRCASEEQ(connectionType, "bridged")) {
|
} else if (connectionType == NULL || STRCASEEQ(connectionType, "bridged")) {
|
||||||
(*def)->type = VIR_DOMAIN_NET_TYPE_BRIDGE;
|
(*def)->type = VIR_DOMAIN_NET_TYPE_BRIDGE;
|
||||||
(*def)->data.bridge.brname = g_steal_pointer(&networkName);
|
(*def)->data.bridge.brname = g_steal_pointer(&networkName);
|
||||||
@ -3991,7 +3991,7 @@ virVMXFormatEthernet(virDomainNetDef *def, int controller,
|
|||||||
controller);
|
controller);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS: {
|
case VIR_DOMAIN_NET_TYPE_VDS: {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<on_reboot>restart</on_reboot>
|
<on_reboot>restart</on_reboot>
|
||||||
<on_crash>destroy</on_crash>
|
<on_crash>destroy</on_crash>
|
||||||
<devices>
|
<devices>
|
||||||
<interface type='dummy'>
|
<interface type='null'>
|
||||||
<mac address='00:50:56:87:65:43' type='generated'/>
|
<mac address='00:50:56:87:65:43' type='generated'/>
|
||||||
<model type='e1000e'/>
|
<model type='e1000e'/>
|
||||||
</interface>
|
</interface>
|
@ -236,7 +236,7 @@ mymain(void)
|
|||||||
DO_TEST("ethernet-static");
|
DO_TEST("ethernet-static");
|
||||||
DO_TEST("ethernet-vpx");
|
DO_TEST("ethernet-vpx");
|
||||||
DO_TEST("ethernet-other");
|
DO_TEST("ethernet-other");
|
||||||
DO_TEST("ethernet-dummy");
|
DO_TEST("ethernet-null");
|
||||||
DO_TEST("ethernet-vds");
|
DO_TEST("ethernet-vds");
|
||||||
|
|
||||||
DO_TEST("serial-file");
|
DO_TEST("serial-file");
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<type>hvm</type>
|
<type>hvm</type>
|
||||||
</os>
|
</os>
|
||||||
<devices>
|
<devices>
|
||||||
<interface type='dummy'>
|
<interface type='null'>
|
||||||
<mac address='00:50:56:87:65:43'/>
|
<mac address='00:50:56:87:65:43'/>
|
||||||
</interface>
|
</interface>
|
||||||
</devices>
|
</devices>
|
@ -225,7 +225,7 @@ mymain(void)
|
|||||||
DO_TEST("ethernet-other", "ethernet-other", 4);
|
DO_TEST("ethernet-other", "ethernet-other", 4);
|
||||||
DO_TEST("ethernet-mac-type", "ethernet-mac-type", 4);
|
DO_TEST("ethernet-mac-type", "ethernet-mac-type", 4);
|
||||||
|
|
||||||
DO_TEST("ethernet-dummy", "ethernet-dummy", 4);
|
DO_TEST("ethernet-null", "ethernet-null", 4);
|
||||||
DO_TEST("ethernet-vds", "ethernet-vds", 4);
|
DO_TEST("ethernet-vds", "ethernet-vds", 4);
|
||||||
|
|
||||||
DO_TEST("serial-file", "serial-file", 4);
|
DO_TEST("serial-file", "serial-file", 4);
|
||||||
|
@ -1069,7 +1069,7 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd)
|
|||||||
case VIR_DOMAIN_NET_TYPE_UDP:
|
case VIR_DOMAIN_NET_TYPE_UDP:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDPA:
|
case VIR_DOMAIN_NET_TYPE_VDPA:
|
||||||
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
case VIR_DOMAIN_NET_TYPE_INTERNAL:
|
||||||
case VIR_DOMAIN_NET_TYPE_DUMMY:
|
case VIR_DOMAIN_NET_TYPE_NULL:
|
||||||
case VIR_DOMAIN_NET_TYPE_VDS:
|
case VIR_DOMAIN_NET_TYPE_VDS:
|
||||||
case VIR_DOMAIN_NET_TYPE_LAST:
|
case VIR_DOMAIN_NET_TYPE_LAST:
|
||||||
vshError(ctl, _("No support for %s in command 'attach-interface'"),
|
vshError(ctl, _("No support for %s in command 'attach-interface'"),
|
||||||
|
Loading…
Reference in New Issue
Block a user