The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/222

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===

From 0448d5662e4eb0499cfb365698d7f9975fd7f7ba Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Wed, 16 Dec 2020 20:42:33 +0100
Subject: [PATCH] images/fedora: Override cloud-init network config

This overrides the default cloud-init network config, and adds dhcp6.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 images/fedora.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/images/fedora.yaml b/images/fedora.yaml
index 95c002b..b28a503 100644
--- a/images/fedora.yaml
+++ b/images/fedora.yaml
@@ -144,6 +144,16 @@ files:
 
 - name: network-config
   generator: cloud-init
+  content: |-
+    {% if config_get("user.network-config", "") == "" %}version: 1
+    config:
+      - type: physical
+        name: {% if instance.type == "virtual-machine" %}enp5s0{% else 
%}eth0{% endif %}
+        subnets:
+          - type: {% if config_get("user.network_mode", "") == "link-local" 
%}manual{% else %}dhcp{% endif %}
+            control: auto
+          - type: dhcp6
+            control: auto{% else %}{{ config_get("user.network-config", "") 
}}{% endif %}
   variants:
   - cloud
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to