Christian Goll
b0602133ec
use netParseIP and ParseMAC
...
check also MAC addresses and common formating
Signed-off-by: Christian Goll <cgoll@suse.de >
reformat ipaddr for test coverage
fixed processing of default values
updated transformer tests
correct behavior for tags
add tests for tags
new tests for primary network
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:07 +01:00
Christian Goll
13bc378a6b
Refactor the CreateFlags command
...
* added the additional type flag, which can be bool,IP
* UNDEF is recognized for the bool flag
* 0.0.0.0 must be used as UNDEF for IP flag
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:15:50 +01:00
Jonathon Anderson
cb1726bd40
Minor spelling fix
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-31 14:57:27 -07:00
Christian Goll
53be931f87
fix tests for fransfomer
2022-11-29 10:53:53 +01:00
Christian Goll
22f9c86c34
create memory for nettags
2022-10-18 10:02:53 +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
f1bad3bc39
Added csv import of nodes
2022-10-10 11:06:30 +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
efd761f7c3
Read the defaults for anode from defaults.conf
2022-09-15 11:14:26 +02: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
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