From 9cb6b1ed8523c39acc3d3096c1154152ea7174e7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 26 Feb 2020 02:58:27 -0600 Subject: devel: Add 'netconfigtype' key specification --- devel/requirements/3b_runner.xml | 16 +++++++++++++ devel/script/2_keys.xml | 49 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/devel/requirements/3b_runner.xml b/devel/requirements/3b_runner.xml index db80845..60441c8 100644 --- a/devel/requirements/3b_runner.xml +++ b/devel/requirements/3b_runner.xml @@ -162,6 +162,22 @@ Runner.Validate.network.netssid.Key If the third value of a netssid tuple is a valid security type and not none, the system shall ensure that the netssid tuple has a fourth value that specifies the security key. + + Runner.Validate.netconfigtype + The system shall verify that the HorizonScript contains zero or one netconfigtype key. + + + Runner.Validate.netconfigtype.Validity + If the HorizonScript contains a netconfigtype key, the system shall ensure that the netconfigtype key has a valid form of a single string containing a recognised network configuration type. + + + Runner.Validate.netconfigtype.netifrc + If the value of the netconfigtype key is netifrc, the system shall write any network configuration in a manner that can be used by the netifrc package. + + + Runner.Validate.netconfigtype.eni + If the value of the netconfigtype key is eni, the system shall write any network configuration to a /etc/network/interfaces file that conforms to the standard provided. + Runner.Validate.nameserver The system shall verify any nameserver keys contained in the HorizonScript. diff --git a/devel/script/2_keys.xml b/devel/script/2_keys.xml index ccdc810..309f124 100644 --- a/devel/script/2_keys.xml +++ b/devel/script/2_keys.xml @@ -298,6 +298,51 @@ firmware false +
+ <literal>netconfigtype</literal> + + Name + netconfigtype + + + Purpose + The netconfigtype key determines the desired network configuration type used on the target computer. + + + Format + The netconfigtype key is a single string that describes the desired network configuration system used on the target computer. netconfigtype may appear at most once in a HorizonScript. + Currently recognised network configuration systems for Horizon 1.0 are: + + netifrc — The netifrc system, as used by Adélie Linux + eni — The /etc/network/interfaces system, as used by Alpine Linux + + + + + + Default + If no netconfigtype key is specified, the system will default to the netifrc configuration system. + + + Examples + + + The <literal>netconfigtype</literal> Key — netifrc + +netconfigtype netifrc + + This configures the target computer to use netifrc for network configuration. + + + The <literal>netconfigtype</literal> Key — /etc/network/interfaces + +netconfigtype eni + + This configures the target computer to use an /etc/network/interfaces file for network configuration. + + + +
<literal>netaddress</literal> @@ -330,8 +375,8 @@ firmware false Default There is no default for this key. It is invalid to enable networking and not provide at least one netaddress key. - - Example + + Examples The <literal>netaddress</literal> Key — Simple DHCP -- cgit v1.2.3-70-g09d2