aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg_sut/files/netplan_config
blob: 694bff1f4f0ef02c4bd86ed0f2a53e05dc990492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    {{ ansible_default_ipv4["interface"] }}:
      addresses: [ {{ (ansible_default_ipv4.address + '/' + ansible_default_ipv4.netmask) | ipaddr('host/prefix') }} ]
      dhcp4: false
      gateway4: {{ ansible_default_ipv4["gateway"] }}
      nameservers:
        addresses: [ {{ name_servers }} ]