12345678910111213141516171819202122232425262728293031323334353637 |
- package backend
- import (
- "github.com/flannel-io/flannel/subnet"
- "golang.org/x/net/context"
- )
- type SimpleNetwork struct {
- SubnetLease *subnet.Lease
- ExtIface *ExternalInterface
- }
- func (n *SimpleNetwork) Lease() *subnet.Lease {
- return n.SubnetLease
- }
- func (n *SimpleNetwork) MTU() int {
- return n.ExtIface.Iface.MTU
- }
- func (_ *SimpleNetwork) Run(ctx context.Context) {
- <-ctx.Done()
- }
|