[ovs-dev] [PATCH 3/3] extract-ofp-fields: Detect duplicate fields.
YAMAMOTO Takashi
yamamoto at valinux.co.jp
Wed May 20 21:33:35 UTC 2015
> - class_ = oxm_name_to_class(name)
> + prefix, class_ = oxm_name_to_class(name)
> if class_ is None:
> fatal("unknown OXM class for %s" % name)
> oxm_vendor, oxm_class = class_
>
> + if prefix in match_types:
> + if oxm_type in match_types[prefix]:
> + fatal("duplicate match type for %s (conflicts with %s)" %
> + (name, match_types[prefix][oxm_type]))
> + else:
> + match_types[prefix] = dict()
> + match_types[prefix][oxm_type] = name
why don't you just use _class instead of prefix?
YAMAMOTO Takashi
More information about the dev
mailing list