code: def add_flowspec_local(flowspec_family, route_dist, rules, **kwargs):
      
      try:
          # Create new path and insert into appropriate VRF table.
          tm = CORE_MANAGER.get_core_service().table_manager
          tm.update_flowspec_vrf_table(
              flowspec_family=flowspec_family, route_dist=route_dist,
              rules=rules, **kwargs)
  
          # Send success response.
          return [{FLOWSPEC_FAMILY: flowspec_family,
                   ROUTE_DISTINGUISHER: route_dist,
                   FLOWSPEC_RULES: rules}.update(kwargs)]
  
      except BgpCoreError as e:
          raise PrefixError(desc=e)
docs: Adds Flow Specification route from VRF identified by *route_dist*.