- a := make(map[string]string)
- xmgeturl := flag.String("nbi-httpget", "http://localhost:3000/xapps", "xApp Manager URL")
- nngpubsock := flag.String("sbi-nngsub", "tcp://0.0.0.0:4560", "NNG Subsciption Socket URI")
- file := flag.String("sdl-file", "/db/rt.json", "Local file store location")
- rpename := flag.String("rpe", "rmr", "Policy Engine Module name")
- loglevel := flag.String("loglevel", "INFO", "INFO | WARN | ERROR | DEBUG")
+ // TODO: arguments should be validated (filename; xm-url; sbi-if; rest-url; rest-port)
+ args = make(map[string]*string)
+ args["configfile"] = flag.String("configfile", "/etc/rtmgrcfg.json", "Routing manager's configuration file path")
+ args["nbi"] = flag.String("nbi", "httpRESTful", "Northbound interface module to be used. Valid values are: 'httpGetter | httpRESTful'")
+ args["sbi"] = flag.String("sbi", "nngpush", "Southbound interface module to be used. Valid values are: 'nngpush")
+ args["rpe"] = flag.String("rpe", "rmrpush", "Route Policy Engine to be used. Valid values are: 'rmrpush'")
+ args["sdl"] = flag.String("sdl", "file", "Data store engine to be used. Valid values are: 'file'")
+ args["xm-url"] = flag.String("xm-url", "http://localhost:3000/xapps", "HTTP URL where xApp Manager exposes the entire xApp List")
+ args["nbi-if"] = flag.String("nbi-if", "http://localhost:8888", "Base HTTP URL where routing manager will be listening on")
+ args["sbi-if"] = flag.String("sbi-if", "0.0.0.0", "IPv4 address of interface where Southbound socket to be opened")
+ args["filename"] = flag.String("filename", "/db/rt.json", "Absolute path of file where the route information to be stored")
+ args["loglevel"] = flag.String("loglevel", "INFO", "INFO | WARN | ERROR | DEBUG | TRACE")