Sometimes, when the cache is populated (e.g: on goovn.NewClient()) the library can crash the program (in several ways). An example crash traceback is here:
The reason behind it is the lack of table order enforcement in PopulateCache due to golang not guaranteeing maps are ranged in the same order they are created. This can make a LogicalRouter object be created before its LogicalRouterPorts are, which causes the above crash.
Sometimes, when the cache is populated (e.g: on
goovn.NewClient()
) the library can crash the program (in several ways). An example crash traceback is here:The reason behind it is the lack of table order enforcement in
PopulateCache
due to golang not guaranteeing maps are ranged in the same order they are created. This can make aLogicalRouter
object be created before itsLogicalRouterPort
s are, which causes the above crash.I'll send a PR to fix this soon.