containernetworking / cni

Container Network Interface - networking for Linux containers
https://cni.dev
Apache License 2.0
5.47k stars 1.07k forks source link

cni spec expanded #533

Open whustone opened 6 years ago

whustone commented 6 years ago

Hello, everyone. When we use CNI, we find that the NIC of the container may communicate though the specified NIC in nodes. Is it possible to expand CNI return? add "ref_nic" in the interfaces such as: "interfaces": [ (this key omitted by IPAM plugins) { "name": "\<name>", "mac": "\<MAC address>", (required if L2 addresses are meaningful) "sandbox": "\<netns path or hypervisor identifier>", (required for container/hypervisor interfaces, empty/omitted for host interfaces) "ref_nics": "\<reference nic list>" (such as "eth3,eth4", splited by comma) } ]

squeed commented 6 years ago

We've been thinking about this - adding the index of the peer IF. What exactly, in your mind, is the role of the ref_nic?

bboreham commented 6 years ago

ping @whustone - waiting on you to add more information