# config-json options
self.pool = json_get('pool', require=True)
self.namespace = json_get('namespace')
+ self.extra_args = json_get('extra_args', [])
self.files = json_get('files', {})
# validate the supplied args
cname = '%s-%s' % (cname, desc)
return cname
+ def get_daemon_args(self):
+ # type: () -> List[str]
+ return self.daemon_args + self.extra_args
+
def get_file_content(self, fname):
# type: (str) -> str
"""Normalize the json file content into a string"""
for peer in peers:
r += ["--cluster.peer={}".format(peer)]
elif daemon_type == NFSGanesha.daemon_type:
- r += NFSGanesha.daemon_args
+ nfs_ganesha = NFSGanesha.init(fsid, daemon_id)
+ r += nfs_ganesha.get_daemon_args()
return r
config = {'pool' : self.spec.pool} # type: Dict
if self.spec.namespace:
config['namespace'] = self.spec.namespace
+ config['extra_args'] = ['-N', 'NIV_EVENT']
config['files'] = {
'ganesha.conf' : self.get_ganesha_conf(),
}