resources: net: Add net resource
This patch adds a net resource for managing nework interfaces, based around netlink.
This commit is contained in:
committed by
Jonathan Gold
parent
8500339ba6
commit
7d7eb3d1cd
5
examples/lang/net1.mcl
Normal file
5
examples/lang/net1.mcl
Normal 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
3
examples/lang/net2.mcl
Normal file
@@ -0,0 +1,3 @@
|
||||
net "eth0" {
|
||||
state => "up",
|
||||
}
|
||||
3
examples/lang/net3.mcl
Normal file
3
examples/lang/net3.mcl
Normal file
@@ -0,0 +1,3 @@
|
||||
net "eth0" {
|
||||
state => "down",
|
||||
}
|
||||
Reference in New Issue
Block a user