#!/bin/bash
#
echo 0 >/sys/class/net/{{ server.ethname }}/device/sriov_numvfs
ifconfig {{ server.ethname }}.100 down
vconfig rem {{ server.ethname }}.100
{% if tsg_access_type == 4 %}
echo 0 >/sys/class/net/{{ nic_data_incoming.ethname }}/device/sriov_numvfs
{% endif %}