mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
conf: Use virTristateXXX in virDomainActualNetDef
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a9ef3272c5
commit
f1d4cd5ab3
@ -10574,14 +10574,15 @@ virDomainActualNetDefParseXML(xmlNodePtr node,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
trustGuestRxFilters = virXMLPropString(node, "trustGuestRxFilters");
|
if ((trustGuestRxFilters = virXMLPropString(node, "trustGuestRxFilters"))) {
|
||||||
if (trustGuestRxFilters &&
|
int value;
|
||||||
((actual->trustGuestRxFilters
|
if ((value = virTristateBoolTypeFromString(trustGuestRxFilters)) <= 0) {
|
||||||
= virTristateBoolTypeFromString(trustGuestRxFilters)) <= 0)) {
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
_("unknown trustGuestRxFilters value '%s'"),
|
||||||
_("unknown trustGuestRxFilters value '%s'"),
|
trustGuestRxFilters);
|
||||||
trustGuestRxFilters);
|
goto error;
|
||||||
goto error;
|
}
|
||||||
|
actual->trustGuestRxFilters = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtPortNode = virXPathNode("./virtualport", ctxt);
|
virtPortNode = virXPathNode("./virtualport", ctxt);
|
||||||
|
@ -995,7 +995,7 @@ struct _virDomainActualNetDef {
|
|||||||
virNetDevVPortProfile *virtPortProfile;
|
virNetDevVPortProfile *virtPortProfile;
|
||||||
virNetDevBandwidth *bandwidth;
|
virNetDevBandwidth *bandwidth;
|
||||||
virNetDevVlan vlan;
|
virNetDevVlan vlan;
|
||||||
int trustGuestRxFilters; /* enum virTristateBool */
|
virTristateBool trustGuestRxFilters;
|
||||||
virTristateBool isolatedPort;
|
virTristateBool isolatedPort;
|
||||||
unsigned int class_id; /* class ID for bandwidth 'floor' */
|
unsigned int class_id; /* class ID for bandwidth 'floor' */
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user