diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-09-16 07:12:11 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@in.ibm.com> | 2017-10-03 10:04:46 +0530 |
commit | e05083ad3082e61388567c0c36c68dc08436188d (patch) | |
tree | fd4ea818178da8720fbdc563264cfbe20168675b /test | |
parent | fd4b0f018b7d34292766cf9d871c391fa96ce8aa (diff) | |
download | phosphor-networkd-e05083ad3082e61388567c0c36c68dc08436188d.tar.gz phosphor-networkd-e05083ad3082e61388567c0c36c68dc08436188d.zip |
Restart the network through networkManager
Extend the refresh timer once we get the Dbus request which
requires network restart.
Detaching the network restart from the writeConfiguration func.
Write the configuration file for the vlan interface in
writeConfiguration func.
During creation of vlan,vlan interface should come up with
dhcp as false.
Change-Id: Iadc7b44554aca412d211d13e9569cc601ad04074
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/test_network_manager.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index f1d11d4..024fa25 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -33,6 +33,7 @@ test_LDADD = $(top_builddir)/ethernet_interface.o \ $(top_builddir)/ipaddress.o \ $(top_builddir)/routing_table.o \ $(top_builddir)/util.o \ + $(top_builddir)/timer.o \ $(top_builddir)/system_configuration.o \ $(top_builddir)/dhcp_configuration.o \ $(top_builddir)/config_parser.o \ diff --git a/test/test_network_manager.cpp b/test/test_network_manager.cpp index 3e1f0e3..6281081 100644 --- a/test/test_network_manager.cpp +++ b/test/test_network_manager.cpp @@ -3,6 +3,7 @@ #include "xyz/openbmc_project/Common/error.hpp" #include <phosphor-logging/elog-errors.hpp> +#include "timer.hpp" #include <gtest/gtest.h> #include <sdbusplus/bus.hpp> @@ -20,6 +21,7 @@ namespace phosphor namespace network { +std::unique_ptr<phosphor::network::Timer> refreshTimer = nullptr; namespace fs = std::experimental::filesystem; class TestNetworkManager : public testing::Test |