ipam/host-local: add ResolvConf argument for DNS configuration

This adds the option `resolvConf` to the host-local IPAM configuration.
If specified, the plugin will try to parse the file as a resolv.conf(5)
type file and return it in the DNS response.
This commit is contained in:
Casey Callendrello
2016-11-21 19:05:41 +01:00
committed by Casey Callendrello
parent 4406607649
commit 5cde14cd7b
7 changed files with 169 additions and 7 deletions

View File

@ -32,6 +32,7 @@ type IPAMConfig struct {
Gateway net.IP `json:"gateway"`
Routes []types.Route `json:"routes"`
DataDir string `json:"dataDir"`
ResolvConf string `json:"resolvConf"`
Args *IPAMArgs `json:"-"`
}