If annotation is found on pod then pod
is already processed, stop processing.
This is different from "Failed to add
ports" error.
Change-Id: I101df641c150e007146bc1aeda9c5b372be329ca
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
return
}
- if _, ok := pod.Annotations[Ovn4nfvAnnotationTag]; ok {
- log.V(1).Info("AddLogicalPorts : Pod annotation found")
- return
- }
-
var ovnString, outStr string
ovnString = "["
var ns netInterface
if err != nil {
return err
}
+ if _, ok := pod.Annotations[ovn.Ovn4nfvAnnotationTag]; ok {
+ return fmt.Errorf("Pod annotation found")
+ }
key, value := ovnCtl.AddLogicalPorts(pod, nfn.Interface)
if len(key) > 0 {
return r.setPodAnnotation(pod, key, value)