mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Merge pull request #638 from catborise/master
fix default nic type problem
This commit is contained in:
commit
3f23acbb9d
4 changed files with 27 additions and 1 deletions
|
@ -660,7 +660,9 @@
|
|||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="xmledit">
|
||||
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
|
||||
{% if instance.status != 5 %}
|
||||
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
|
||||
{% endif %}
|
||||
<form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form">
|
||||
{% csrf_token %}
|
||||
<div class="col-sm-12" id="xmlheight">
|
||||
|
|
|
@ -1853,6 +1853,9 @@ def create_instance(request, compute_id, arch, machine):
|
|||
machine = "q35"
|
||||
firmware["secure"] = "yes"
|
||||
|
||||
if data["net_model"] == "default":
|
||||
data["net_model"] = "virtio"
|
||||
|
||||
uuid = util.randomUUID()
|
||||
try:
|
||||
conn.create_instance(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue