Check existance on VLAN creation

This patch checks if the VLAN ID has already been used on the interface
when creating new VLANs.

Tested:
Creating VLAN with existing VLAN ID gives InvalidArgument error.

Change-Id: I73b4a932756863cec79d52f17fd462a20c99770b
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
1 file changed
tree: 892338d3ccd28f1840ce53824bf0c25c13107f2c
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. LICENSE
  11. MAINTAINERS
  12. meson.build
  13. meson_options.txt
  14. OWNERS
  15. README.md
  16. xyz.openbmc_project.Network.conf.in
  17. xyz.openbmc_project.Network.service.in
README.md

To Build

To build this package, do the following steps:

    1. meson build
    2. ninja -C build