2.155. vpp_srv6 module

SRv6 LocalSIDs

object abstractions for representing SRv6 localSIDs in VPP

class vpp_srv6.SRv6LocalSIDBehaviors

Bases: object

SR_BEHAVIOR_DT4 = 9
SR_BEHAVIOR_DT6 = 8
SR_BEHAVIOR_DX2 = 5
SR_BEHAVIOR_DX4 = 7
SR_BEHAVIOR_DX6 = 6
SR_BEHAVIOR_D_FIRST = 4
SR_BEHAVIOR_END = 1
SR_BEHAVIOR_END_UN = 11
SR_BEHAVIOR_END_UN_PERF = 10
SR_BEHAVIOR_LAST = 12
SR_BEHAVIOR_T = 3
SR_BEHAVIOR_X = 2
class vpp_srv6.SRv6PolicySteeringTypes

Bases: object

SR_STEER_IPV4 = 4
SR_STEER_IPV6 = 6
SR_STEER_L2 = 2
class vpp_srv6.SRv6PolicyType

Bases: object

SR_POLICY_TYPE_DEFAULT = 0
SR_POLICY_TYPE_SPRAY = 1
class vpp_srv6.VppSRv6LocalSID(test, localsid, behavior, nh_addr, end_psp, sw_if_index, vlan_index, fib_table)

Bases: vpp_object.VppObject

SRv6 LocalSID

add_vpp_config()

Add the configuration for this object to vpp.

object_id()

Return a unique string representing this object.

query_vpp_config()

Query the vpp configuration.

Returns

True if the object is configured

remove_vpp_config()

Remove the configuration for this object from vpp.

class vpp_srv6.VppSRv6Policy(test, bsid, is_encap, sr_type, weight, fib_table, segments, source)

Bases: vpp_object.VppObject

SRv6 Policy

add_vpp_config()

Add the configuration for this object to vpp.

object_id()

Return a unique string representing this object.

query_vpp_config()

Query the vpp configuration.

Returns

True if the object is configured

remove_vpp_config()

Remove the configuration for this object from vpp.

class vpp_srv6.VppSRv6Steering(test, bsid, prefix, mask_width, traffic_type, sr_policy_index, table_id, sw_if_index)

Bases: vpp_object.VppObject

SRv6 Steering

add_vpp_config()

Add the configuration for this object to vpp.

object_id()

Return a unique string representing this object.

query_vpp_config()

Query the vpp configuration.

Returns

True if the object is configured

remove_vpp_config()

Remove the configuration for this object from vpp.