initial commit
This commit is contained in:
15
pkg/network/network.go
Normal file
15
pkg/network/network.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package network
|
||||
|
||||
// BridgeManager handles host bridge/VLAN setup.
|
||||
type BridgeManager interface {
|
||||
EnsureBridge(name string, vlanAware bool, mtu int) error
|
||||
List() ([]Bridge, error)
|
||||
}
|
||||
|
||||
type Bridge struct {
|
||||
Name string
|
||||
VlanAware bool
|
||||
MTU int
|
||||
}
|
||||
|
||||
// TODO: implement using systemd-networkd/ifupdown2 files in /etc/jagacloud/network.
|
||||
Reference in New Issue
Block a user