How can I know how many networks have been configured

21 views
Skip to first unread message

Bryan Boreham

unread,
Aug 8, 2020, 9:21:57 AM8/8/20
to cni-dev
Not inside CNI. Each interface is configured by a separate call, and there is nowhere to put information about the other interfaces.

Marc Roos

unread,
Aug 8, 2020, 9:23:29 AM8/8/20
to bryan, cni-dev
Ok, Thanks Bryan.

Marc Roos

unread,
Aug 11, 2020, 11:53:51 AM8/11/20
to cni-dev

I was wondering if cni networks were always applied in sequence. I am
seeing the same order of eth0, eth1 etc. But is it true that the 2nd
network is only created when the first was successfully
completed/attached? Or is this specific to the executor?






Dan Williams

unread,
Aug 11, 2020, 12:26:26 PM8/11/20
to Marc Roos, cni-dev
It's up to the container runtime (cnitool, crio, dockershim, etc) to
decide the order of networks. That thing also supplies the interface
name. There is no guarantee of CNI invocation matching up to a specific
interface name.

Dan

Marc Roos

unread,
Aug 21, 2020, 11:51:09 AM8/21/20
to cni-dev


I have been using this layout to assign ip addresses.

{
"name": "cni-bridge-test",
"args": {
"cni": {
"ips": ["192.168.0.100"]
}
}
}

How, where should I the subnet/netmask?

This gives an error

{
"name": "cni-bridge-test",
"args": {
"cni": {
"ips": ["192.168.0.100/23"]
}
}
}


Reply all
Reply to author
Forward
0 new messages