blob: 47d38a56f34def63ce024b99ccea2ccbf37618c0 [file] [log] [blame]
Ratan Guptacb7098d2017-04-14 17:46:05 +05301#include <sdbusplus/bus.hpp>
2#include <sdbusplus/server/manager.hpp>
3#include "config.h"
4#include "network_manager.hpp"
Ratan Gupta8c834932017-04-14 16:30:24 +05305
6int main(int argc, char *argv[])
7{
Ratan Guptacb7098d2017-04-14 17:46:05 +05308 auto bus = sdbusplus::bus::new_default();
9
10 // Add sdbusplus Object Manager for the 'root' path of the network manager.
11 sdbusplus::server::manager::manager objManager(bus, OBJ_NETWORK);
12
Ratan Gupta255d5142017-08-10 09:02:08 +053013 phosphor::network::Manager manager(bus, OBJ_NETWORK, NETWORK_CONF_DIR);
Ratan Guptacb7098d2017-04-14 17:46:05 +053014
Ratan Guptaef85eb92017-06-15 08:57:54 +053015 manager.createChildObjects();
Ratan Gupta29b0e432017-05-25 12:51:40 +053016
Ratan Guptacb7098d2017-04-14 17:46:05 +053017 bus.request_name(BUSNAME_NETWORK);
18
19 while(true)
20 {
21 bus.process_discard();
22 bus.wait();
23 }
24
Ratan Gupta8c834932017-04-14 16:30:24 +053025 return 0;
26}