Test: Add test case for Load Balancer plugin 20/3320/3
authorPierre Pfister <ppfister@cisco.com>
Fri, 7 Oct 2016 15:31:57 +0000 (16:31 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 10 Oct 2016 21:05:14 +0000 (21:05 +0000)
commitf588f35d665425324af87378e09b40920e44a548
tree41cad1fdcc358295bc190251fa7875d67d7b6813
parent51ffa817d910ba058cd76f2b7dd9a4142944f2ee
Test: Add test case for Load Balancer plugin

This adds a basic test for the four existing encap modes
for the load balancer plugin.
- ip4 over gre4
- ip4 over gre6
- ip6 over gre4
- ip6 over gre6

Apparently, scapy does not support GRE and IPv6 combinations.
Hence, those tests do send packets through VPP, but only
ip4 over gre4 output is actually parsed and verified.

Change-Id: I7cedb0f88fd0788ee51b1428ddf9cff7c037511f
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
plugins/lb-plugin/lb/lb.c
plugins/lb-plugin/lb/node.c
test/test_lb.py [new file with mode: 0644]