*: add "dns" field to the configuration
authorAlban Crequy <alban@kinvolk.io>
Tue, 26 Jan 2016 17:54:56 +0000 (18:54 +0100)
committerAlban Crequy <alban@kinvolk.io>
Tue, 26 Jan 2016 17:54:56 +0000 (18:54 +0100)
commit2f9ef4adb7f0281c88600b3b86626757562b3e3d
tree462c2c53b685ebdd0791895b7364cfa24462bfdc
parent03d4ba4ffb31f4330511aee955835523096a43d9
*: add "dns" field to the configuration

appc/cni#76 added a "dns" field in the result JSON. But before this
patch, the plugins had no way of knowing which name server to return.

There could be two ways of knowing which name server to return:
1. add it as an extra argument ("CNI_ARGS")
2. add it in the network configuration as a convenience (received via
   stdin)

I chose the second way because it is easier. In the case of rkt, it
means the user could just add the DNS name servers in
/etc/rkt/net.d/mynetwork.conf.
Documentation/ptp.md
pkg/types/types.go
plugins/main/bridge/bridge.go
plugins/main/ipvlan/ipvlan.go
plugins/main/macvlan/macvlan.go
plugins/main/ptp/ptp.go