summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2021-02-05 17:11:14 -0500
committerGitHub <noreply@github.com>2021-02-05 17:11:14 -0500
commit3a0a5894d112d667f313d7fb3ab0850a39bc3020 (patch)
treea5e30febbffbe7a11ef7e1be08ad167dcd7e4df0 /tools
parent3cebe0df1e002bd85c8aa78e89f0ca507c17195a (diff)
downloadvyos-cloud-init-3a0a5894d112d667f313d7fb3ab0850a39bc3020.tar.gz
vyos-cloud-init-3a0a5894d112d667f313d7fb3ab0850a39bc3020.zip
test_gh668: fix failure on LXD VMs (#801)
In LXD containers, the default interface is named eth0. In VMs, it isn't; it's renamed by systemd (likely to enp5s0, but we can't rely on that). This means that, on VMs, the network configuration we specify for "eth0" doesn't match an interface in the system and so is not applied. This modifies the test to set a MAC address in a match clause in the network configuration and on the eth0 interface (which is the LXD name in both containers and VMs pre-rename): this ensures that the specified configuration applies in both cases.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions