Fix VLAN info not added to interfacesByIdx map

VLAN interfaces were initially created with a temporary index, which
only updated the `interfaces` map and not `interfacesByIdx`. This change
updates `interfacesByIdx` once `createInterface` is triggered after VLAN
creation.

Tested:
1. Enabled VLAN.
2. Verified VLAN IP by launching WebUI with VLAN IP.
3. Checked VLAN D-Bus objects are created.
4. Disabled VLAN.
5. Checked VLAN D-Bus objects are deleted.

Change-Id: I077adc400ff1248c9c7dda726206f9c54d8fb361
Signed-off-by: Rashid MP <rashidmp@ami.com>
1 file changed
tree: eee2cc1652f57b5095ed1c64cab88d2c15dff95d
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .clang-tidy
  9. .gitignore
  10. .shellcheck
  11. 60-phosphor-networkd-default.network.in
  12. LICENSE
  13. meson.build
  14. meson.options
  15. OWNERS
  16. README.md
  17. xyz.openbmc_project.Network.conf.in
  18. xyz.openbmc_project.Network.service.in
README.md

phosphor-networkd

To Build

To build this package, do the following steps:

1. meson build
2. ninja -C build