1234567891011121314151617181920212223242526272829303132333435363738 |
- package backend
- import (
- "golang.org/x/net/context"
- "github.com/flannel-io/flannel/subnet"
- )
- 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()
- }
|