Don't populate NetDevs[].Type or NetDevs[].Netmask during upgrade
- Closes: #1661 NetDev defaults don't behave quite the same as standard fields, because they need to be set per-device. Meanwhile, trying to set a value may erroneously override values that are on the default profile. Switch this to a warning rather than attempting to take explicit action. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
committed by
Christian Goll
parent
87b9ad33ff
commit
032db29f87
@@ -885,6 +885,22 @@ nodes:
|
||||
fieldValues: []string{"ro1,ro2,~ro1,ro3", "so1,so2,so4,~so2"},
|
||||
sources: []string{"default,n1", "default,n1"},
|
||||
},
|
||||
"netmask inheritance": {
|
||||
nodesConf: `
|
||||
nodeprofiles:
|
||||
p1:
|
||||
network devices:
|
||||
default:
|
||||
netmask: 255.255.255.0
|
||||
nodes:
|
||||
n1:
|
||||
profiles:
|
||||
- p1`,
|
||||
node: "n1",
|
||||
field: "NetDevs[default].Netmask",
|
||||
source: "p1",
|
||||
value: "255.255.255.0",
|
||||
},
|
||||
}
|
||||
|
||||
for name, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user