FD.io VPP  v21.06-3-gbb25fbf28
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 704)

Implementation: clear_sr_localsid_counters_command_fn.

set sr encaps hop-limit

Summary/usage

set sr encaps hop-limit <value>.

Declaration and implementation

Declaration: set_sr_hop_limit_command (src/vnet/srv6/sr_policy_rewrite.c line 182)

Implementation: set_sr_hop_limit_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 144)

Implementation: set_sr_src_command_fn.

show sr encaps hop-limit

Summary/usage

show sr encaps hop-limit.

Declaration and implementation

Declaration: show_sr_encaps_hop_limit_command (src/vnet/srv6/sr_policy_rewrite.c line 1209)

Implementation: show_sr_encaps_hop_limit_command_fn.

show sr encaps source addr

Summary/usage

show sr encaps source addr.

Declaration and implementation

Declaration: show_sr_encaps_source_command (src/vnet/srv6/sr_policy_rewrite.c line 1188)

Implementation: show_sr_encaps_source_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 680)

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 2443)

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 1167)

Implementation: show_sr_policies_command_fn.

show sr policy behaviors

Summary/usage

show sr policy behaviors.

Declaration and implementation

Declaration: show_sr_policy_behaviors_command (src/vnet/srv6/sr_policy_rewrite.c line 3474)

Implementation: show_sr_policy_behaviors_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 530)

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.uN -> Endpoint with uSID. 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 510)

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 1087)

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 463)

Implementation: sr_steer_policy_command_fn.