Disable rp_filter for the radius interface so it can accept packets from other ONOS subnets (in port mode)
Change-Id: I644be13ade4d2915ae9cfebaadc3c09805f7a668
diff --git a/src/test/setup/cord-test.py b/src/test/setup/cord-test.py
index f017cc0..3760666 100755
--- a/src/test/setup/cord-test.py
+++ b/src/test/setup/cord-test.py
@@ -540,6 +540,11 @@
print('Configuring Radius port %s on OVS bridge %s' %(guest_if, host_intf))
print('Running pipework command: %s' %(pipework_cmd))
res += os.system(pipework_cmd)
+ rp_filter_disable = 'docker exec {} '\
+ 'sysctl -w net.ipv4.conf.{}.rp_filter=2'.format(self.radius.name,
+ guest_if)
+ print('Disabling rp filter on radius interface %s' %(guest_if))
+ res += os.system(rp_filter_disable)
brd = '{}.255'.format(prefix)
brd_cmd = 'docker exec {} ifconfig {} broadcast {} up'.format(self.radius.name,
guest_if,