resources: net: Add net resource

This patch adds a net resource for managing nework interfaces, based
around netlink.
This commit is contained in:
jonathangold
2017-12-18 07:18:09 -05:00
committed by Jonathan Gold
parent 8500339ba6
commit 7d7eb3d1cd
7 changed files with 957 additions and 0 deletions

5
examples/lang/net1.mcl Normal file
View File

@@ -0,0 +1,5 @@
net "eth0" {
state => "up",
addrs => ["192.168.42.13/24",],
gateway => "192.168.42.1",
}

3
examples/lang/net2.mcl Normal file
View File

@@ -0,0 +1,3 @@
net "eth0" {
state => "up",
}

3
examples/lang/net3.mcl Normal file
View File

@@ -0,0 +1,3 @@
net "eth0" {
state => "down",
}