aboutsummaryrefslogtreecommitdiffstats
path: root/test/bfd.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-06-22 22:36:46 +0200
committerOle Troan <ot@cisco.com>2018-06-22 22:37:55 +0200
commite0d2bd6bd7fc59c0c6ac48195d7f825dc99bfd91 (patch)
tree1b6f7af08cd0ba04001a0da13efb8ba9d937472f /test/bfd.py
parentc8efa29b6f9a91381897b54f1147daf922ed7164 (diff)
Revert "ipsec: VPP-1316 calculate IP/TCP/UDP inner checksums"
This reverts commit a98346f664aae148d26a8e158008b773d73db96f. Change-Id: Iee5b3a5ddff0e8fd3a30fe5973cee24de434fe12 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/bfd.py')
-rw-r--r--test/bfd.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/bfd.py b/test/bfd.py
index d99bbf6165c..452a1804988 100644
--- a/test/bfd.py
+++ b/test/bfd.py
@@ -35,6 +35,9 @@ class BFDDiagCode(NumericConstant):
reverse_concatenated_path_down: "Reverse Concatenated Path Down",
}
+ def __init__(self, value):
+ NumericConstant.__init__(self, value)
+
class BFDState(NumericConstant):
""" BFD State """
@@ -50,6 +53,9 @@ class BFDState(NumericConstant):
up: "Up",
}
+ def __init__(self, value):
+ NumericConstant.__init__(self, value)
+
class BFDAuthType(NumericConstant):
""" BFD Authentication Type """
@@ -69,6 +75,9 @@ class BFDAuthType(NumericConstant):
meticulous_keyed_sha1: "Meticulous Keyed SHA1",
}
+ def __init__(self, value):
+ NumericConstant.__init__(self, value)
+
def bfd_is_auth_used(pkt):
""" is packet authenticated? """
@@ -139,7 +148,6 @@ class BFD(Packet):
return self.sprintf("BFD(my_disc=%BFD.my_discriminator%,"
"your_disc=%BFD.your_discriminator%)")
-
# glue the BFD packet class to scapy parser
bind_layers(UDP, BFD, dport=BFD.udp_dport)
@@ -161,7 +169,6 @@ class BFD_vpp_echo(Packet):
"BFD_VPP_ECHO(disc=%BFD_VPP_ECHO.discriminator%,"
"expire_time_clocks=%BFD_VPP_ECHO.expire_time_clocks%)")
-
# glue the BFD echo packet class to scapy parser
bind_layers(UDP, BFD_vpp_echo, dport=BFD_vpp_echo.udp_dport)