def _parse_nexus_vni_range(self, tunnel_range):
for ident in tunnel_range:<EOL><INDENT>if not self._is_valid_nexus_vni(ident):<EOL><INDENT>raise exc.NetworkTunnelRangeError(<EOL>tunnel_range=tunnel_range,<EOL>error=_("<STR_LIT>") %<EOL>{'<STR_LIT:id>': ident})<EOL><DEDENT><DEDENT>if tunnel_range[<NUM_LIT:1>] < tunnel_range[<NUM_LIT:0>]:<EOL><INDENT>raise exc.NetworkTunnelRangeError(<EOL>tunnel_range=tunnel_range,<EOL>error=_("<STR_LIT>"<EOL>"<STR_LIT>"))<EOL><DEDENT>
Raise an exception for invalid tunnel range or malformed range.