From 255216b4470b0a25dded0edc1e8acd8e0fbf34b5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 21 Apr 2021 19:05:51 +0200 Subject: containers: T2216: refine implementation This commit is a cleanup and refinement of the container hosting implementation. - Renamed CLI node ipv4-prefix -> prefix so both IPv4 and IPv6 prefix can be supplied in the future. This is currently limited to IPv4 only as when using IPv6 networks in combination with IPv4 the IPv4 prefix is altered randomly - De-nested if clauses - Use "for foo, bar in baz.items()" to more easily iterate of dictionary values, this means "bar" can be used to access "baz[foo]" --- interface-definitions/containers.xml.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'interface-definitions/containers.xml.in') diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in index f54207936..47b41c834 100644 --- a/interface-definitions/containers.xml.in +++ b/interface-definitions/containers.xml.in @@ -54,7 +54,7 @@ Set IPv4 static address to container (optional) - ipv4 + ipv4 IPv4 address (x.x.x.1 reserved) @@ -76,16 +76,17 @@ Network description - + Prefix which allocated to that network ipv4net - IPv4 network and prefix length + IPv4 network prefix - + + -- cgit v1.2.3