Project

General

Profile

« Previous | Next » 

Revision c6196310

Added by Ermal Luçi about 16 years ago

Do not allow to add a vlan tag on the same interface when it is used by qinq.

View differences:

usr/local/www/interfaces_vlan_edit.php
87 87
			break;
88 88
		}
89 89
	}
90
	if (is_array($config['qinqs']['qinqentry'])) {
91
		foreach ($config['qinqs']['qinqentry'] as $qinq)
92
			if ($qinq['tag'] == $_POST['tag'] && $qinq['if'] == $_POST['if'])
93
				$input_errors[] = "A QinQ VLAN exists with this tag please remove it to use this tag with.";
94
	}
90 95

  
91 96
	if (!$input_errors) {
92 97
		$vlan = array();

Also available in: Unified diff