Fix nameserver property for VLAN interfaces

Currently, nameservers of VLAN interfaces assigned by DHCP will not be
populated on DBus, and static nameservers previously set disappears on
DBus. This patch fixes this issue by loading nameserver info when
creating VLAN interface, same as how physical one does.

Tested:
Verified below 2 cases with VLAN interface
1. Nameservers assigned by DHCP is populated on DBus.
2. After restarting the xyz.openbmc_project.Network service, static
   nameservers previously configured is populated DBus.

Change-Id: I0da0c3c25b749de14994ed3f1647a21c1ecfac7d
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
1 file changed
tree: 2503ff9c98b6d2752e8d456e66688bcb86290cdf
  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