FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
clear sr localsid counters.
Declaration: clear_sr_localsid_counters_command (src/vnet/srv6/sr_localsid.c line 577)
Implementation: clear_sr_localsid_counters_command_fn.
set sr encaps source addr <ip6_addr>.
Declaration: set_sr_src_command (src/vnet/srv6/sr_policy_rewrite.c line 131)
Implementation: set_sr_src_command_fn.
show sr localsids.
Declaration: show_sr_localsid_command (src/vnet/srv6/sr_localsid.c line 553)
Implementation: show_sr_localsid_command_fn.
show sr localsids behaviors.
Declaration: show_sr_localsid_behaviors_command (src/vnet/srv6/sr_localsid.c line 1620)
Implementation: show_sr_localsid_behaviors_command_fn.
show sr policies.
Declaration: show_sr_policies_command (src/vnet/srv6/sr_policy_rewrite.c line 1009)
Implementation: show_sr_policies_command_fn.
show sr steering policies.
Declaration: show_sr_steering_policies_command (src/vnet/srv6/sr_steering.c line 533)
Implementation: show_sr_steering_policies_command_fn.
sr localsid (del) address XX:XX::YY:YY(fib-table 8) behavior STRING.
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: sr_localsid_command (src/vnet/srv6/sr_localsid.c line 409)
Implementation: sr_cli_localsid_command_fn.
sr policy [add||del||mod] [bsid 2001::1||index 5] next A:: next B:: next C:: (weight 1) (fib-table 2) (encap|insert).
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: sr_policy_command (src/vnet/srv6/sr_policy_rewrite.c line 929)
Implementation: sr_policy_command_fn.
sr steer (del) [l3 <ip_addr/mask>|l2 <sf_if>]via sr policy [index <sr_policy_index>|bsid <bsid_ip6_addr>](fib-table <fib_table_index>).
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: sr_steer_policy_command (src/vnet/srv6/sr_steering.c line 466)
Implementation: sr_steer_policy_command_fn.