def get_vn_from_annotation(self, annotations): """ Get vn-fq-name if specified in annotations of a k8s object. """ vn_ann = annotations.get('opencontrail.org/network', None) if vn_ann: return get_vn_fq_name_from_dict_string(vn_ann) return None
def get_vn_from_annotation(self, annotations): """ Get vn-fq-name if specified in annotations of a k8s object. """ vn_ann = annotations.get('opencontrail.org/network', None) if vn_ann: return get_vn_fq_name_from_dict_string(vn_ann) return None