|
@@ -141,14 +141,18 @@ type Network struct {
|
|
|
|
|
|
// newNetwork creates a new network with default settings
|
|
// newNetwork creates a new network with default settings
|
|
func newNetwork(node *Node, id NetworkID, t Tap) (*Network, error) {
|
|
func newNetwork(node *Node, id NetworkID, t Tap) (*Network, error) {
|
|
|
|
+ m := NewMACForNetworkMember(node.Identity().address, id)
|
|
n := &Network{
|
|
n := &Network{
|
|
node: node,
|
|
node: node,
|
|
id: id,
|
|
id: id,
|
|
- mac: NewMACForNetworkMember(node.Identity().address, id),
|
|
|
|
|
|
+ mac: m,
|
|
tap: t,
|
|
tap: t,
|
|
config: NetworkConfig{
|
|
config: NetworkConfig{
|
|
ID: id,
|
|
ID: id,
|
|
|
|
+ MAC: m,
|
|
Status: NetworkStatusRequestConfiguration,
|
|
Status: NetworkStatusRequestConfiguration,
|
|
|
|
+ Type: NetworkTypePrivate,
|
|
|
|
+ MTU: int(defaultVirtualNetworkMTU),
|
|
},
|
|
},
|
|
settings: NetworkLocalSettings{
|
|
settings: NetworkLocalSettings{
|
|
AllowManagedIPs: true,
|
|
AllowManagedIPs: true,
|