@RegisterWithArgChecks(name='evpn_prefix.delete_local', req_args=[EVPN_ROUTE_TYPE, ROUTE_DISTINGUISHER], opt_args=[EVPN_ESI, EVPN_ETHERNET_TAG_ID, MAC_ADDR, IP_ADDR, IP_PREFIX, EVPN_VNI])
def delete_evpn_local(route_type, route_dist, **kwargs):
 try:
  tm = CORE_MANAGER.get_core_service().table_manager
  tm.update_vrf_table(route_dist, route_family=VRF_RF_L2_EVPN, route_type=route_type, is_withdraw=True, **kwargs)
  return [{EVPN_ROUTE_TYPE: route_type, ROUTE_DISTINGUISHER: route_dist, VRF_RF: VRF_RF_L2_EVPN}.update(kwargs)]
 except BgpCoreError as e:
  raise PrefixError(desc=e)

@ RegisterWithArgChecks ( name = 'evpn_prefix.delete_local' , req_args = [ EVPN_ROUTE_TYPE , ROUTE_DISTINGUISHER ] , opt_args = [ EVPN_ESI , EVPN_ETHERNET_TAG_ID , MAC_ADDR , IP_ADDR , IP_PREFIX , EVPN_VNI ] ) def delete_evpn_local ( route_type , route_dist , ** kwargs ) : try : tm = CORE_MANAGER . get_core_service ( ) . table_manager tm . update_vrf_table ( route_dist , route_family = VRF_RF_L2_EVPN , route_type = route_type , is_withdraw = True , ** kwargs ) return [ { EVPN_ROUTE_TYPE : route_type , ROUTE_DISTINGUISHER : route_dist , VRF_RF : VRF_RF_L2_EVPN } . update ( kwargs ) ] except BgpCoreError as e : raise PrefixError ( desc = e )
deletes/withdraws evpn route from vrf identified by *route_dist* .