mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Merge pull request #264 from catborise/master
Debian10 installation & And Qos fix
This commit is contained in:
		
						commit
						b816bb28e3
					
				
					 2 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -662,7 +662,10 @@ daemons_running_ubuntu() {
 | 
			
		|||
#
 | 
			
		||||
install_debian() {
 | 
			
		||||
    apt-get update || return 1
 | 
			
		||||
    apt-get -y install qemu-kvm libvirt-bin bridge-utils sasl2-bin python-guestfs supervisor || return 1
 | 
			
		||||
    if [ $DISTRO_MAJOR_VERSION -lt 10 ]; then
 | 
			
		||||
	apt-get -y install qemu-kvm libvirt-bin bridge-utils sasl2-bin python-guestfs supervisor || return 1
 | 
			
		||||
    else
 | 
			
		||||
	apt-get -y install qemu qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system sasl2-bin virtinst supervisor || return 1
 | 
			
		||||
    return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -855,6 +855,7 @@
 | 
			
		|||
                                        <th>{% trans 'MAC' %}</th>
 | 
			
		||||
                                        <th>{% trans 'NIC' %}</th>
 | 
			
		||||
                                        <th>{% trans 'Filter' %}</th>
 | 
			
		||||
                                        <th>{% trans 'Qos' %}</th>
 | 
			
		||||
                                        <th>{% trans 'Actions' %}</th>
 | 
			
		||||
                                    </tr>
 | 
			
		||||
                                    </thead>
 | 
			
		||||
| 
						 | 
				
			
			@ -865,6 +866,12 @@
 | 
			
		|||
                                            <td><input class="form-control" type="text" value="{{ network.mac }}" readonly/></td>
 | 
			
		||||
                                            <td><input class="form-control" type="text" value="{{ network.nic }}" readonly/></td>
 | 
			
		||||
                                            <td><input class="form-control" type="text" value="{{ network.filterref }}" readonly/></td>
 | 
			
		||||
                                            <td>
 | 
			
		||||
                                                <form class="form-horizontal" method="post" name="add_qos{{ forloop.counter0 }}" role="form">{% csrf_token %}
 | 
			
		||||
                                                    <input type="text" name="net-mac-{{ forloop.counter0 }}" value="{{ network.mac }}" hidden/>
 | 
			
		||||
                                                    {% include 'add_network_qos.html' with id=forloop.counter0 %}
 | 
			
		||||
                                                </form>
 | 
			
		||||
                                            </td>
 | 
			
		||||
                                            <td class="col-sm-2">
 | 
			
		||||
                                            <form class="form-horizontal" method="post" name="set_qos{{ forloop.counter0 }}" role="form">{% csrf_token %}
 | 
			
		||||
                                                <button data-target="#editInstanceNetwork{{ forloop.counter0 }}" type="button" class="btn btn-sm btn-primary"
 | 
			
		||||
| 
						 | 
				
			
			@ -920,8 +927,6 @@
 | 
			
		|||
                                                    onclick="return confirm('{% trans "Are you sure?" %}')">
 | 
			
		||||
                                                    <i class="glyphicon glyphicon-trash"></i>
 | 
			
		||||
                                                </button>
 | 
			
		||||
 | 
			
		||||
                                                {% include 'add_network_qos.html' with id=forloop.counter0 %}
 | 
			
		||||
                                            </form>
 | 
			
		||||
                                            </td>
 | 
			
		||||
                                        </tr>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue