22 {
23 google::InitGoogleLogging(argv[0]);
24 google::ParseCommandLineFlags(&argc, &argv, true);
25
27
29 &routing_conf))
30 << "Unable to load routing conf file: " + FLAGS_routing_conf_file;
31
32 AINFO <<
"Conf file: " << FLAGS_routing_conf_file <<
" is loaded.";
33
36
38 ACHECK(creator.Create()) <<
"Create routing topo failed!";
39
40 AINFO <<
"Create routing topo successfully from " << base_map <<
" to "
41 << routing_map;
42 return 0;
43}
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
std::string RoutingMapFile()
get routing map file path from flags.
std::string BaseMapFile()
get base map file path from flags.