2.141. vpp_ipsec module¶
-
class
vpp_ipsec.
VppIpsecSA
(test, id, spi, integ_alg, integ_key, crypto_alg, crypto_key, proto, tun_src=None, tun_dst=None, flags=None, salt=0, udp_src=None, udp_dst=None)¶ Bases:
vpp_object.VppObject
VPP SAD Entry
-
DEFAULT_UDP_PORT
= 4500¶
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
get_stats
(worker=None)¶
-
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_ipsec.
VppIpsecSpd
(test, id)¶ Bases:
vpp_object.VppObject
VPP SPD DB
-
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_ipsec.
VppIpsecSpdEntry
(test, spd, sa_id, local_start, local_stop, remote_start, remote_stop, proto, priority=100, policy=None, is_outbound=1, remote_port_start=0, remote_port_stop=65535, local_port_start=0, local_port_stop=65535)¶ Bases:
vpp_object.VppObject
VPP SPD DB Entry
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
get_stats
(worker=None)¶
-
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_ipsec.
VppIpsecSpdItfBinding
(test, spd, itf)¶ Bases:
vpp_object.VppObject
VPP SPD DB to interface binding (i.e. this SPD is used on this interface)
-
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_ipsec.
VppIpsecTunProtect
(test, itf, sa_out, sas_in, nh=None)¶ Bases:
vpp_object.VppObject
VPP IPSEC tunnel protection
-
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.
-
update_vpp_config
(sa_out, sas_in)¶
-
-
vpp_ipsec.
mk_counter
()¶