aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/templates/ifcfg-sriov.j2
blob: c40058545350080d584186714edb23e7973732b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
DEVICE={{ intf_sriov }}
BOOTPROTO=none
ONBOOT=yes
IPADDR={{ ip_settings[inventory_hostname]["tenant"]["ip"] }}
NETMASK=255.255.255.0
DEFROUTE="no"
{% if sys_intf_mappings["tenant"]["vlan_tag"] | int %}
{% set intf_vlan = "yes" %}
{% else %}
{% set intf_vlan = "no" %}
{% endif %}
VLAN={{ intf_vlan }}