Disallow without vlan id when creating vlan interface
When configuring an interface to vlan, it is possible to configure the
interface without entering a vlan id. If vlan id is set without input, vlan id
is set to NONE. If this interface is assigned to oam and unlocked, a problem
occurs. After unlock, the device name is set to vlanNone and the oam interface
cannot up normally.
Closes-Bug: 1979253
Test Plan:
PASS: Create vlan interface with vlan id and succeed in creation
PASS: Create vlan interface without vlan id and fail in creation
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/846903 /opendev. org/starlingx/ config/ commit/ 60c1074f254e4dc 2970971c4d8a334 ae6ab0fab4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 60c1074f254e4dc 2970971c4d8a334 ae6ab0fab4
Author: Joohyun <email address hidden>
Date: Tue Jun 21 14:31:57 2022 +0900
Disallow without vlan id when creating vlan interface
When configuring an interface to vlan, it is possible to configure the
interface without entering a vlan id. If vlan id is set without input, vlan id
is set to NONE. If this interface is assigned to oam and unlocked, a problem
occurs. After unlock, the device name is set to vlanNone and the oam interface
cannot up normally.
Closes-Bug: 1979253
Test Plan:
PASS: Create vlan interface with vlan id and succeed in creation
PASS: Create vlan interface without vlan id and fail in creation
Signed-off-by: ohjoohyun <email address hidden> f874a54292f4065 6fc890f0a1a
Change-Id: Ifd5527699cb8e8