bfd module

class bfd.BFD(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'bfd.BFD'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (BFD).version>, <Field (BFD).diag>, <Field (BFD).state>, <Field (BFD).flags>, <Field (BFD).detect_mult>, <Field (BFD).length>, <Field (BFD).my_discriminator>, <Field (BFD).your_discriminator>, <Field (BFD).desired_min_tx_interval>, <Field (BFD).required_min_rx_interval>, <Field (BFD).required_min_echo_rx_interval>]
mysummary()
udp_dport = 3784

BFD destination port per RFC 5881

udp_sport_max = 65535

BFD source port max value per RFC 5881

udp_sport_min = 49152

BFD source port min value per RFC 5881

class bfd.BFDDiagCode(value)

Bases: util.NumericConstant

BFD Diagnostic Code

administratively_down = 7
concatenated_path_down = 6
control_detection_time_expired = 1
desc_dict = {0: 'No diagnostic', 1: 'Control Detection Time Expired', 2: 'Echo Function Failed', 3: 'Neighbor Signaled Session Down', 4: 'Forwarding Plane Reset', 5: 'Path Down', 6: 'Concatenated Path Down', 7: 'Administratively Down', 8: 'Reverse Concatenated Path Down'}
echo_function_failed = 2
forwarding_plane_reset = 4
neighbor_signaled_session_down = 3
no_diagnostic = 0
path_down = 5
reverse_concatenated_path_down = 8
class bfd.BFDState(value)

Bases: util.NumericConstant

BFD State

admin_down = 0
desc_dict = {0: 'AdminDown', 1: 'Down', 2: 'Init', 3: 'Up'}
down = 1
init = 2
up = 3
class bfd.VppBFDUDPSession(test, interface, peer_addr, local_addr=None, af=2, desired_min_tx=100000, required_min_rx=100000, detect_mult=3)

Bases: vpp_object.VppObject

Represents BFD UDP session in VPP

add_vpp_config()
admin_up()
af

Address family - AF_INET or AF_INET6

bs_index

BFD session index from VPP

desired_min_tx
detect_mult
interface

Interface on which this session lives

local_addr

BFD session local address (VPP address)

local_addr_n

BFD session local address (VPP address) - raw, suitable for API

object_id()
peer_addr

BFD session peer address

peer_addr_n

BFD session peer address - raw, suitable for API

query_vpp_config()
remove_vpp_config()
required_min_rx
state

BFD session state

test

Test which created this session