Nishant Puri has uploaded this change for review.

View Change

ganesha_mgr: add conditional logging commands via log.conditional DBus

Add ganesha_mgr subcommands that call the org.ganesha.nfsd.log.conditional
DBus interface for managing conditional logging clients, exports, and match
policy.

Show:
- show conditional_clients (ShowConditionalLogClientList)
- show conditional_exports (ShowConditionalLogExportList)
- show conditional_match_policy (ShowMatchPolicy)

Update:
- update conditional_match_policy <ANY|ALL> (ChangeMatchPolicy)
Output is the backend message only; no "Returns: status = ..." line.

Add:
- add conditional_clients <ipaddr> (ClientEnable; IP/CIDR only)
- add conditional_exports <export_id> (ExportEnable)

Remove:
- remove conditional_clients <ipaddr> (ClientDisable)
If the argument looks like shell-expanded '*' (e.g. multiple args or
a single non-IP/CIDR token), the command is not run and the user is
told to quote the asterisk: remove conditional_clients '*'
- remove conditional_exports <export_id> (ExportDisable)

Helpers are implemented in Ganesha/ganesha_mgr_utils.py (CondLogManager);
CLI parsing, help text, and per-command behavior are in ganesha_mgr.py.

Change-Id: I35fcdc9f0baa8baed603a4d2a46638c71b4ebd42
Signed-off-by: Nishant Puri <npuri@redhat.com>
---
M src/scripts/ganeshactl/Ganesha/ganesha_mgr_utils.py
M src/scripts/ganeshactl/ganesha_mgr.py
2 files changed, 248 insertions(+), 4 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/70/1233570/1

To view, visit change 1233570. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I35fcdc9f0baa8baed603a4d2a46638c71b4ebd42
Gerrit-Change-Number: 1233570
Gerrit-PatchSet: 1
Gerrit-Owner: Nishant Puri <npuri@redhat.com>