This patch adds a shell test for net, which creates a dummy interface and runs mgmt to bring it up and assign it with an address. It then checks if the state was applied correctly. Finally, it runs mgmt again to bring the interface down, and tests that it comes down and stays down.
5 lines
68 B
Plaintext
5 lines
68 B
Plaintext
net "mgmtnet0" {
|
|
state => "up",
|
|
addrs => ["192.168.42.13/24",],
|
|
}
|