Hi Ewan,

In VPP we have a generic classifier feature that can be used to filter user 
specific traffic to support PBR.
User can configure a forwarding policy using classifier defined in an ACL to 
match on interesting packets
and redirect traffic using pre-defined VRF specific to PBR.

One thing you can try is to use action and metadata parameters in classifier 
API as follows:

    @param action -
           0: no action (by default)
              metadata is not used.
           1: Classified IP packets will be looked up from the
              specified ipv4 fib table (configured by metadata as VRF id).
              Only valid for L3 input ACL node
           2: Classified IP packets will be looked up from the
              specified ipv6 fib table (configured by metadata as VRF id).
              Only valid for L3 input ACL node
    @param metadata - valid only if action != 0
           VRF id if action is 1 or 2.

define classify_add_del_session
{
  u32 client_index;
  u32 context;
  u8 is_add;
  u32 table_index;
  u32 hit_next_index;
  u32 opaque_index;
  i32 advance;
  u8 action;
  u32 metadata;
  u8 match[0];
};

Thanks,
Steve

From: <vpp-dev-boun...@lists.fd.io> on behalf of "yug...@telincn.com" 
<yug...@telincn.com>
Date: Friday, August 11, 2017 at 12:37 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: [vpp-dev] Policy routing

Hi,
Does vpp  surpport policy routing?

Regards,
Ewan

________________________________
yug...@telincn.com
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to