FD.io VPP  v19.04-6-g6f05f72
Vector Packet Processing
src/vnet/srv6

clear sr localsid-counters

Summary/usage

clear sr localsid-counters.

Declaration and implementation

Declaration: clear_sr_localsid_counters_command (src/vnet/srv6/sr_localsid.c line 576)

Implementation: clear_sr_localsid_counters_command_fn.

set sr encaps source

Summary/usage

set sr encaps source addr <ip6_addr>.

Declaration and implementation

Declaration: set_sr_src_command (src/vnet/srv6/sr_policy_rewrite.c line 137)

Implementation: set_sr_src_command_fn.

show sr localsids

Summary/usage

show sr localsids.

Declaration and implementation

Declaration: show_sr_localsid_command (src/vnet/srv6/sr_localsid.c line 552)

Implementation: show_sr_localsid_command_fn.

show sr localsids behaviors

Summary/usage

show sr localsids behaviors.

Declaration and implementation

Declaration: show_sr_localsid_behaviors_command (src/vnet/srv6/sr_localsid.c line 1619)

Implementation: show_sr_localsid_behaviors_command_fn.

show sr policies

Summary/usage

show sr policies.

Declaration and implementation

Declaration: show_sr_policies_command (src/vnet/srv6/sr_policy_rewrite.c line 1023)

Implementation: show_sr_policies_command_fn.

show sr steering-policies

Summary/usage

show sr steering-policies.

Declaration and implementation

Declaration: show_sr_steering_policies_command (src/vnet/srv6/sr_steering.c line 532)

Implementation: show_sr_steering_policies_command_fn.

sr localsid

Summary/usage

sr localsid (del) address XX:XX::YY:YY(fib-table 8) behavior STRING.

Long help

Create SR LocalSID and binds it to a particular behaviornArguments:ntlocalSID IPv6_addr(128b) LocalSID IPv6 addressnt(fib-table X) Optional. VRF where to install SRv6 localsidntbehavior STRING Specifies the behaviornntBehaviors:ntEndt-> Endpoint.ntEnd.Xt-> Endpoint with decapsulation and Layer-3 cross-connect.nttParameters: '<iface> <ip6_next_hop>'ntEnd.DX2t-> Endpoint with decapsulation and Layer-2 cross-connect.nttParameters: '<iface>'ntEnd.DX6t-> Endpoint with decapsulation and IPv6 cross-connect.nttParameters: '<iface> <ip6_next_hop>'ntEnd.DX4t-> Endpoint with decapsulation and IPv4 cross-connect.nttParameters: '<iface> <ip4_next_hop>'ntEnd.DT6t-> Endpoint with decapsulation and specific IPv6 table lookup.nttParameters: '<ip6_fib_table>'ntEnd.DT4t-> Endpoint with decapsulation and specific IPv4 table lookup.nttParameters: '<ip4_fib_table>'n

Declaration and implementation

Declaration: sr_localsid_command (src/vnet/srv6/sr_localsid.c line 409)

Implementation: sr_cli_localsid_command_fn.

sr policy

Summary/usage

sr policy [add||del||mod] [bsid 2001::1||index 5] next A:: next B:: next C:: (weight 1) (fib-table 2) (encap|insert).

Long help

Manipulation of SR policies.nA Segment Routing policy may contain several SID lists. Each SID list hasnan associated weight (default 1), which will result in wECMP (uECMP).nSegment Routing policies might be of type encapsulation or srh insertionnEach SR policy will be associated with a unique BindingSID.nA BindingSID is a locally allocated SegmentID. For every packet that arrivesnwith IPv6_DA:BSID such traffic will be steered into the SR policy.nThe add command will create a SR policy with its first segment list (sl)nThe mod command allows you to add, remove, or modify the existing segment listsnwithin an SR policy.nThe del command allows you to delete a SR policy along with all its associatednSID lists.n

Declaration and implementation

Declaration: sr_policy_command (src/vnet/srv6/sr_policy_rewrite.c line 943)

Implementation: sr_policy_command_fn.

sr steer

Summary/usage

sr steer (del) [l3 <ip_addr/mask>|l2 <sf_if>] via [index <sr_policy_index>|bsid <bsid_ip6_addr>] (fib-table <fib_table_index>).

Long help

tSteer a L2 or L3 traffic through an existing SR policy.ntExamples:nttsr steer l3 2001::/64 via sr_policy index 5nttsr steer l3 2001::/64 via sr_policy bsid 2010::9999:1nttsr steer l2 GigabitEthernet0/5/0 via sr_policy index 5nttsr steer del l3 2001::/64 via sr_policy index 5n

Declaration and implementation

Declaration: sr_steer_policy_command (src/vnet/srv6/sr_steering.c line 465)

Implementation: sr_steer_policy_command_fn.