Move dbus method call into try-catch block

This change is to avoid networkd core dumping in systems
where resolved service is not active. Moving the dbus
call into try block will throw the exception instead of
networkd core dump.

Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>
Change-Id: I547fcb910628fa20312099caa97fa0f76b6d140f
1 file changed
tree: 12ad28288c5fb057dc0044fdc78c87213484a8e2
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. LICENSE
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
  15. xyz.openbmc_project.Network.conf.in
  16. 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