As can be seen just above, the correct operator for the equality
test is '=' and not '=='. This match isn't currently being used
in the neutron code, but will be used by the OVN driver.
The previous code would also raise NotImplemented when there was
no match.
Change-Id: I17ac85d1ad68d3e207225db300f65c0df1f6e1ad
elif isinstance(match, list):
raise NotImplementedError()
else:
- if op == '==' and val != match:
- matched = False
- elif op == '!=' and val == match:
- matched = False
+ if op == '=':
+ if val != match:
+ matched = False
+ elif op == '!=':
+ if val == match:
+ matched = False
else:
raise NotImplementedError()
return matched