From 9980c1ec905a455a028cbeb1c15fc7eda09cb78d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 13 Oct 2019 09:29:53 -0500 Subject: hscript: Initial twiddling at NetSSID impl, add net execution --- hscript/network.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hscript/network.cc') diff --git a/hscript/network.cc b/hscript/network.cc index 3dc5f1e..809891f 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -220,3 +220,21 @@ bool NetAddress::validate(ScriptOptions) const { bool NetAddress::execute(ScriptOptions) const { return false; } + +Key *NetSSID::parseFromData(const std::string &data, int lineno, int *errors, + int *warnings) { + std::string iface, ssid, passphrase; + return new NetSSID(lineno, iface, ssid, SecurityType::None, passphrase); +} + +bool NetSSID::validate(ScriptOptions options) const { + /* Runner.Validate.network.netssid.Interface */ + if(options.test(InstallEnvironment)) { + return false; + } + return true; +} + +bool NetSSID::execute(ScriptOptions) const { + return false; +} -- cgit v1.2.3-70-g09d2