FD.io VPP  v19.01.3-6-g70449b9b9
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 behavior Arguments: localSID IPv6_addr(128b) LocalSID IPv6 address (fib-table X) Optional. VRF where to install SRv6 localsid behavior STRING Specifies the behavior

Behaviors: End -> Endpoint. End.X -> Endpoint with decapsulation and Layer-3 cross-connect. Parameters: '<iface> <ip6_next_hop>' End.DX2 -> Endpoint with decapsulation and Layer-2 cross-connect. Parameters: '<iface>' End.DX6 -> Endpoint with decapsulation and IPv6 cross-connect. Parameters: '<iface> <ip6_next_hop>' End.DX4 -> Endpoint with decapsulation and IPv4 cross-connect. Parameters: '<iface> <ip4_next_hop>' End.DT6 -> Endpoint with decapsulation and specific IPv6 table lookup. Parameters: '<ip6_fib_table>' End.DT4 -> Endpoint with decapsulation and specific IPv4 table lookup. Parameters: '<ip4_fib_table>'

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. A Segment Routing policy may contain several SID lists. Each SID list has an associated weight (default 1), which will result in wECMP (uECMP). Segment Routing policies might be of type encapsulation or srh insertion Each SR policy will be associated with a unique BindingSID. A BindingSID is a locally allocated SegmentID. For every packet that arrives with IPv6_DA:BSID such traffic will be steered into the SR policy. The add command will create a SR policy with its first segment list (sl) The mod command allows you to add, remove, or modify the existing segment lists within an SR policy. The del command allows you to delete a SR policy along with all its associated SID lists.

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

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

Declaration and implementation

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

Implementation: sr_steer_policy_command_fn.