Christian Goll
96644be621
allow UNSET for IP addresses
...
added more tests for GetFrom
allow UNSET and handle empty hwaddr
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:38 +01:00
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
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
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
e0c62a81a4
testing profile set
2022-07-14 10:35:27 +02:00
Christian Goll
14b86a5e8e
added profile set over API
2022-07-13 15:56:04 +02:00
Christian Goll
f0eb3f8504
fixed embeded init for linitng
2022-07-13 14:43:02 +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
Christian Goll
a37fa71de0
add explicit set of netname
2022-07-07 11:38:19 +02:00
Christian Goll
8902f08c87
added hangling of map[string]*struct
2022-07-07 11:37:18 +02:00
Christian Goll
84d3b72f63
added more abstrac setter for nested structs
2022-07-07 11:29:58 +02:00
Christian Goll
bd2543d484
relection test for comment
2022-07-07 11:28:27 +02:00
jcsiadal
9b6b93a5cb
Rename default to primary in src
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-05-05 03:13:21 +00:00
jcsiadal
dbd747788f
wwctl profile fixes
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-04-19 21:59:34 +00:00
Christian Goll
95050a44ce
add user defined keys for networks/netdev
...
Every network in the profile and for the nodes can have induvidual keys values
pairs, called Tags, which are propergated to the templates. So they can be used
for things like MTU size like
`wwct node set node01 --nettag mtu=9000`
and in in ifcfg.xml.ww
```
{{ if $netdev.Tags.mtu -}}
<mtu> {{ $netdev.Tags.mtu }} </mtu>
{{ end -}}
```
2022-04-06 21:36:17 +02:00
Christian Goll
c0f7ecf357
store the ovelats as yaml list
2022-03-24 19:45:51 +01:00
Christian Goll
5ac75661c9
Only write to IPMI if this is explictly wanted
2022-03-02 21:24:05 +01:00
Gregory Kurtzer
1203186194
Support kernel overrides from the host or other containers
2022-02-17 07:37:04 +00:00
Gregory Kurtzer
104bc7527d
Restored deleted kernel components for overrides
2022-02-17 06:21:40 +00:00
Gregory Kurtzer
5a0c13225e
Utilize containerized kernel and remove kernel Support
2022-02-15 06:49:24 +00:00
Gregory Kurtzer
30994fd60d
Setting sane defaults for node and profile selection
2022-02-12 01:27:58 +00:00
Gregory Kurtzer
ffaf794a42
Changed "key" paramaters to tags and cleaned up interface
2022-02-11 05:52:46 +00:00
Gregory Kurtzer
7381efb0fc
Fix the help output for set -N ...
2022-02-11 04:55:04 +00:00
Gregory Kurtzer
c5cbd3d6e3
Simplified default network device configuration
2022-02-10 16:35:46 +00:00
Gregory Kurtzer
d9c13c3f36
Initial commit of asset key tag security check
2022-01-24 00:32:02 +00:00
Gregory Kurtzer
9f53bca1bf
Various fixes found in testing
2021-12-29 17:16:53 -08:00
Gregory Kurtzer
00d8d42e9d
First pass at a rework of the overlay subsystem in Warewulf
2021-12-29 16:11:25 -08:00
Gregory Kurtzer
f5a9c0f933
Fixed backwards compatibility with --netdev and cleanups
2021-12-28 16:07:19 -08:00
Gregory Kurtzer
938511e9cd
Merge branch 'main' of github.com:gmkurtzer/warewulf into netdev_refactor
2021-12-28 15:17:21 -08:00
jcsiadal
0b93d6c277
Update help
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2021-11-08 11:36:21 -08:00
Gregory Kurtzer
6acf272ea7
Merge branch 'main' of github.com:hpcng/warewulf into netdev_refactor
2021-10-23 12:33:52 -07:00
Gregory Kurtzer
1370932cd3
Introduction of netname functionality for network devices
2021-10-23 07:12:57 -07:00
Gregory Kurtzer
b90883ad2d
Properly increment IP addresses on multi-node set
2021-10-22 16:10:12 -07:00
Christian Goll
edf1329246
added basic error handling for flag nouns
2021-09-28 12:14:46 +02:00
Christian Goll
bd7f502b0e
dynamic nouns for 'wwctl node'
2021-09-28 11:22:16 +02:00
Michael L. Young
13ad67e56e
Add IPMI Port Configuration
...
This commit adds the ability to configure the default IPMI port for a
profile or per node. If the port is not set, we default to 623.
Updated some areas to default to 'lan' for IPMI interface if it has not
been set.
2021-08-24 19:11:39 -04:00
Gregory Kurtzer
4d37c87c7b
Add a note on help output of how to unset configs
2021-08-20 19:44:44 -07:00
Christian Goll
c6b2fc5795
added configureable ipmiinterface used by ipmitool
...
ipmitool is now searched from $PATH, so that self
compiled ipmitool can be used
2021-08-06 09:22:31 +02:00
Niko Kivel
17f26e8bf1
Params-->Keys
2021-05-11 08:45:09 +02:00
Niko Kivel
54b2164c4e
custom paramters
2021-05-10 00:12:13 +02:00
Niko Kivel
dd4c075f50
paramters in node
2021-05-08 19:04:37 +02:00
Gregory Kurtzer
663c31fc7e
Added profile UI fixes
...
Related to #63 and #58 .
2021-04-25 13:21:59 -07:00
Niko Kivel
09ba69cc79
NIC type for node-->set
2021-03-26 10:38:20 +01:00
Niko Kivel
fbc2f250ae
fixed wrong variabel for kernel arguments
2021-01-26 22:53:18 +09:00
Gregory Kurtzer
72b1d8c9d8
UI Updates with a few minor fixups scattered here and there
2021-01-14 20:23:42 -08:00
Gregory Kurtzer
8a419f648b
Properly configure a network device to be default
2020-12-22 21:51:05 -08:00