commit | b685cb6602360517dc5546aa7d122ade3b3620e5 | [log] [tgz] |
---|---|---|
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | Tue Apr 12 22:57:34 2022 +0800 |
committer | Ratan Gupta <ratankgupta31@gmail.com> | Wed Jul 06 09:38:27 2022 +0000 |
tree | c45f27008e90af8a5dc2f3da280ca65a49da49c6 | |
parent | c41e44c3131c29e1397b526735bfcb50faa9a47b [diff] |
Validate VLAN id on creation As per IEEE 802.1Q, VLAN ID is a 12-bit unsigned value with 0 and 4095 being reserved. This patch adds check for the VLAN ID when creating VLAN interface. Tested: Creating VLAN with invalid IDs like 0, 4095, 9999 on a valid interface gives InvalidArgument error. Change-Id: I27ccd3657b4e411c530762d6076902f22c7cbf5a Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>