Check ip addresses formatting

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2024-12-20 11:39:45 +01:00
committed by Jonathon Anderson
parent 83af6021c0
commit 8ef063a093

View File

@@ -602,6 +602,29 @@ nodes:
n02:
profiles:
- default
`,
},
{
name: "single node list with network",
args: []string{"-a"},
wantErr: false,
stdout: `
NODE FIELD PROFILE VALUE
---- ----- ------- -----
n01 Profiles -- default
n01 NetDevs[default].Hwaddr -- aa:bb:cc:dd:ee:ff
n01 NetDevs[default].Ipaddr -- 1.1.1.1
`,
inDb: `nodeprofiles:
default: {}
nodes:
n01:
profiles:
- default
network devices:
default:
hwaddr: aa:bb:cc:dd:ee:ff
ipaddr: 1.1.1.1
`,
},
}