Add CNI-Genie reference in code

Signed-off-by: Ritu Sood <ritu.sood@intel.com>
This commit is contained in:
Ritu Sood
2019-01-24 06:48:37 -08:00
committed by Kuralamudhan Ramakrishnan
parent 05b4321ab1
commit b43e1d1dca

View File

@@ -314,6 +314,8 @@ func delPlugins(exec invoke.Exec, argIfname string, delegates []*types.DelegateN
return nil
}
// Merge code based on CNI-Genie's code
// https://github.com/Huawei-PaaS/CNI-Genie/blob/master/genie/genie-controller.go#L882
func mergeWithResult(srcObj, dstObj cnitypes.Result) (cnitypes.Result, error) {
srcObj, err := updateRoutes(srcObj)
if err != nil {