CentaurusInfra / mizar

Mizar – Experimental, High Scale and High Performance Cloud Network https://mizar.readthedocs.io
https://mizar.readthedocs.io
GNU General Public License v2.0
111 stars 50 forks source link

Fix issue 608 Mizar cni panic #610

Closed Hong-Chang closed 2 years ago

Hong-Chang commented 2 years ago

This pr is to fix issue 608 Mizar cni panic. The root cause is because inside mizar cni, after get interface, as normal go coding practise, it shall check error but in this case the code didn't. Hence it will cause null reference issue for later code.

The fix is to add error handling.

What type of PR is this? /kind bug

Which issue(s) this PR fixes: Fixes #608