예제 #1
0
 def _get_community(path):
     for p in path['attrs']:
         if p['type'] == BGP_ATTR_TYPE_COMMUNITIES:
             return [community_str(c) for c in p['communities']]
     return None
예제 #2
0
파일: gobgp.py 프로젝트: sapcc/kube-parrot
 def _get_community(path):
     for p in path['attrs']:
         if p['type'] == BGP_ATTR_TYPE_COMMUNITIES:
             return [community_str(c) for c in p['communities']]
     return None