test-link: skip test if iproute2 is not capable enough

Older iproute2 as shipped with Ubuntu 14 doesn't support vxlan dstport.
This commit is contained in:
Lubomir Rintel 2015-11-03 14:01:30 +01:00
parent 212b3e6713
commit fd8d0562eb

View file

@ -687,10 +687,16 @@ test_software_detect (gconstpointer user_data)
case NM_LINK_TYPE_VXLAN:
switch (test_data->test_mode) {
case 0:
nmtstp_run_command_check ("ip link add %s type vxlan id 42 local 23.1.2.164 group 239.1.2.134 dev %s ageing 1245 dstport 4789", DEVICE_NAME, PARENT_NAME);
if (nmtstp_run_command ("ip link add %s type vxlan id 42 local 23.1.2.164 group 239.1.2.134 dev %s ageing 1245 dstport 4789", DEVICE_NAME, PARENT_NAME)) {
g_test_skip ("could not add a vxlan");
goto out_delete_parent;
}
break;
case 1:
nmtstp_run_command_check ("ip link add %s type vxlan id 11214423 local 1:2:3:4:334:23::23 group ff0e::115 dev %s ageing 3245 dstport 57412", DEVICE_NAME, PARENT_NAME);
if (nmtstp_run_command ("ip link add %s type vxlan id 11214423 local 1:2:3:4:334:23::23 group ff0e::115 dev %s ageing 3245 dstport 57412", DEVICE_NAME, PARENT_NAME)) {
g_test_skip ("could not add a vxlan");
goto out_delete_parent;
}
break;
}
break;