Permalink
Browse files

Only add valid network interface IDs to the test list so future tests…

… don't fail
  • Loading branch information...
peternewman committed Oct 25, 2018
1 parent e5a54d4 commit 8ba68ffe8b908808c3a20a4abd5a5d043b7b183a
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools/rdm/TestDefinitions.py
@@ -6696,13 +6696,14 @@ def VerifyResult(self, response, fields):
for interface in fields['interfaces']:
interface_id = interface['interface_identifier']
interfaces.append(interface_id)
if (interface_id < RDM_INTERFACE_INDEX_MIN or
interface_id > RDM_INTERFACE_INDEX_MAX):
self.AddWarning('Interface index %d is outside allowed range (%d to '
'%d)' % (interface_id,
RDM_INTERFACE_INDEX_MIN,
RDM_INTERFACE_INDEX_MAX))
else:
interfaces.append(interface_id)
if (interface['interface_hardware_type'] !=
INTERFACE_HARDWARE_TYPE_ETHERNET):
self.AddAdvisory('Possible error, found unusual hardware type %d for '

0 comments on commit 8ba68ff

Please sign in to comment.