[chassis] Configure midplane network on supervisor#11725
[chassis] Configure midplane network on supervisor#11725arlakshm merged 1 commit intosonic-net:masterfrom
Conversation
|
wondering this change can be be handle in platform code ? Not all vendors/platform have br1 define on supervisor. Similar to creation of eth1-midplane is platform/vendor specific. |
I don't think we can easily move that change in platform code because all namespaces are created and destroyed here, that's the reason the entire logic was moved from interface-config to database.sh in #10500 Here we assume |
bfb2bc0 to
be4e77e
Compare
Multi-asic Docker instances are created behind Docker's default bridge which doesn't allow talking to other Docker instances that are in the host network (like database-chassis). On linecards, we configure midplane interfaces to let per-asic docker containers talk to CHASSIS_DB on the supervisor through internal chassis network. On the supervisor we don't need to use chassis internal network, but we still need a similar setup in order to allow fabric containers to talk to database-chassis
be4e77e to
38a82d7
Compare
Hi @mlorrillere, not all platform need a software bridge to communicate between LC and Sup. So they dont need to create |
In practice this PR is already a noop on platforms that don't have |
|
As discussed offline, we will keep |
|
Hi @arlakshm , |
Multi-asic Docker instances are created behind Docker's default bridge which doesn't allow talking to other Docker instances that are in the host network (like database-chassis). On linecards, we configure midplane interfaces to let per-asic docker containers talk to CHASSIS_DB on the supervisor through internal chassis network. On the supervisor we don't need to use chassis internal network, but we still need a similar setup in order to allow fabric containers to talk to database-chassis
Why I did it
Multi-asic Docker instances are created behind Docker's default bridge
which doesn't allow talking to other Docker instances that are in the
host network (like database-chassis).
On linecards, we configure midplane interfaces to let per-asic docker
containers talk to CHASSIS_DB on the supervisor through internal chassis
network.
On the supervisor we don't need to use chassis internal network, but we
still need a similar setup in order to allow fabric containers to talk
to database-chassis
How I did it
Reusing existing code used to setup the midplane network on a linecard,
except that we only need a pair of veth interfaces on the supervisor to allow
per-asic docker instances access to the midplane subnet.