Commit Graph

191 Commits

Author SHA1 Message Date
Christian Goll
626b9769ac also handle default value 2023-01-09 11:57:11 +01:00
Christian Goll
7a88ff239f checking only for false outcome 2023-01-05 11:03:08 +01:00
Christian Goll
a4a80e0268 GetB must not ignore altvalue 2023-01-04 14:03:02 +01:00
Jonathon Anderson
423e319bf4 Add --- to the head of FallBackConf
Why have I done this?

- Because defaults.conf had a starting newline, which bugs me.
- Because moving the first line of FallBackConf looks unlovely.
- Because yaml happens to have a --- document-start syntax.

I completely agree that this is (hopefully) a no-op change;
but if anyone else thinks it makes things aesthetically more
pleasing, and agrees that it doesn't break anything, go ahead
and merge. ^_^

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-13 17:48:38 -07:00
Christian Goll
f7b67b93a3 need ipxe template in defaults 2022-11-30 15:33:07 +01:00
Christian Goll
79ed2a33ff added simple test for transformer.go 2022-11-29 14:30:41 +01:00
Christian Goll
53be931f87 fix tests for fransfomer 2022-11-29 10:53:53 +01:00
Christian Goll
35529527bb added init function for empty NodeInfo 2022-11-11 14:59:15 +01:00
Christian Goll
22f9c86c34 create memory for nettags 2022-10-18 10:02:53 +02:00
Christian Goll
4fe584547b Merge branch 'development' into wwlog-newlines 2022-10-13 14:46:03 +02:00
Christian Goll
33504354c2 Merge branch 'development' into node-edit 2022-10-13 09:59:38 +02:00
Christian Goll
f55c5bf604 lines for better merging 2022-10-13 09:49:49 +02:00
Christian Goll
6ff4839b0f Merge pull request #549 from mslacken/add-mtu
added mtu
2022-10-12 21:30:07 +02:00
Christian Goll
f1bad3bc39 Added csv import of nodes 2022-10-10 11:06:30 +02:00
Christian Goll
7b958984c8 constant net naming scheme and NetworkManager rule
Apperently the rules in /etc/systemd/network are not
honored by NetworkManager which loads earlier than
systemd-networkd, so adding a rule for NetworkManager
2022-10-06 17:37:38 +02:00
Christian Goll
9e41de9fdf adde mtu 2022-09-30 16:26:14 +02:00
Christian Goll
91e032d7a2 added code for setting default values for NetDev 2022-09-30 16:12:03 +02:00
Christian Goll
a4fbe428e2 only show options with lopt 2022-09-23 14:47:17 +02:00
Christian Goll
c3416de3cb fix for go1.16 and possible sigsev 2022-09-19 17:10:06 +02:00
Christian Goll
3cc9e12e69 add yaml strings as comment 2022-09-19 15:23:33 +02:00
Christian Goll
7087f3e4a1 add edit command for direct edit of node entries 2022-09-16 16:51:07 +02:00
Jonathon Anderson
0b3e862bea Remove trailing newline from wwlog
I noticed that some wwlog calls included a trailing newline, but others
did not. I tested both in isolation and discovered that the behavior was
consistent regardless of whether a trailing newline was included. I
further confirmed in code that wwlog appends a trailing newline
automatically if it is not present; so a trailing newline is unnecessary
in individual calls.

This commit removes trailing newlines from all calls to make them
consistent. It also replaces two calls to wwlog.Printf. (see #534)

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-15 12:38:03 -06:00
Christian Goll
efd761f7c3 Read the defaults for anode from defaults.conf 2022-09-15 11:14:26 +02:00
Jonathon Anderson
22910958b5 Replace all instances of wwlog.Printf
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 08:00:23 -06:00
Christian Goll
18eb531d4b fixed deletion of network and deletion of tags 2022-09-02 16:45:37 +02:00
Christian Goll
255ff61dc8 adding netname option back 2022-08-31 17:05:28 +02:00
Christian Goll
063c781710 recreate CreateFlag based on NodeConf
This will always create the network named default,
so this has to be changed if a new netowk is set
2022-08-19 16:33:46 +02:00
Christian Goll
b485ea999f removed optionStrMap in favor of NodeConf
openStrMap is a map[string]string which is sent arround. This is now
done by using a unmarshalled NodeConf instead.
2022-08-18 19:22:55 +02:00
Christian Goll
2016588f36 fallten the Nodes and NodeProfile before write 2022-08-16 17:15:39 +02:00
Christian Goll
0ca17dd454 using functor for Get and GetReal 2022-08-16 15:38:07 +02:00
Christian Goll
f744934122 fixed linting 2022-08-12 15:52:38 +02:00
Christian Goll
02d47e8f11 automatic add primary for single netdev 2022-08-12 15:41:57 +02:00
Christian Goll
b2dc31e20b fixed mergin profiles into nodes 2022-08-12 09:30:16 +02:00
Christian Goll
8c2d40881d use reflect on overlays 2022-08-10 17:09:10 +02:00
Christian Goll
41d12888ab reflections for unmarshal 2022-08-10 14:16:48 +02:00
Christian Goll
d819eef792 tags for ipmi and kernel 2022-08-04 20:07:24 +02:00
Christian Goll
ba46e34a4d merging profile update 2022-08-03 14:49:50 +02:00
Christian Goll
ed5b2bbf35 using tag instead of key 2022-08-03 13:44:12 +02:00
Christian Goll
96731a4b87 node list imporvement 2022-08-03 11:47:25 +02:00
Christian Goll
b548d8583d reflection on constructor 2022-08-03 11:28:15 +02:00
Christian Goll
925a5a2155 Fix node set 2022-07-26 12:01:13 +02:00
Christian Goll
99e9316011 restore old node list 2022-07-20 12:13:19 +02:00
Christian Goll
e23f794166 simplified node list command 2022-07-19 17:21:27 +02:00
Christian Goll
1dd519a7e6 clean up and linting fix 2022-07-18 15:04:38 +02:00
Christian Goll
e6ef30ed53 porfile add has now all otions of set 2022-07-15 11:10:12 +02:00
Christian Goll
510f6a60a9 added excludellist to CreateFlags 2022-07-14 10:40:46 +02:00
Christian Goll
e0c62a81a4 testing profile set 2022-07-14 10:35:27 +02:00
Christian Goll
59141a6dac change network hadnling 2022-07-13 11:52:24 +02:00
Christian Goll
c8d70e23ad rebased on new API 2022-07-11 16:34:08 +02:00
Christian Goll
29573e26ad added more values 2022-07-07 11:39:02 +02:00