python-mapper: Switch to dbus service whitelist
Use dbus service/busname filtering to match the c++ mapper. This
facilitates an easy transition to c++ mapper.
Set service-namespace as a required parameter.
Set path-namespace as an optional parameter.
Change-Id: I6b16622ee1cb354030a82e7b9d412235933c2d39
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/phosphor-mapper b/phosphor-mapper
index 25d9867..4303434 100644
--- a/phosphor-mapper
+++ b/phosphor-mapper
@@ -24,10 +24,10 @@
parser = ArgumentParser()
parser.add_argument(
'-p', '--path_namespaces',
- required=True)
+ default="")
parser.add_argument(
'-s', '--service_namespaces',
- default="")
+ required=True)
parser.add_argument(
'-i', '--interface_namespaces',
required=True)