Currently ovs-python unixctl implement the list-commands
operation as 'help'  command which doesn't match the ovs-appctl
man page and that can confuse the end-users who want to check
the supported operations of the ovs-monitor-ipsec.

This patch adds a list-commands alias name to'help' operation.

Signed-off-by: Mohammad Heib <[email protected]>
---
 ipsec/ovs-monitor-ipsec.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipsec/ovs-monitor-ipsec.in b/ipsec/ovs-monitor-ipsec.in
index a8b0705d9..f891c767d 100755
--- a/ipsec/ovs-monitor-ipsec.in
+++ b/ipsec/ovs-monitor-ipsec.in
@@ -1308,7 +1308,8 @@ def main():
     idl = ovs.db.idl.Idl(remote, schema_helper)
 
     ovs.daemon.daemonize()
-
+    ovs.unixctl.command_register("list-commands", "", 0, 0,
+                                 ovs.unixctl._unixctl_help, None)
     ovs.unixctl.command_register("xfrm/policies", "", 0, 0,
                                  unixctl_xfrm_policies, None)
     ovs.unixctl.command_register("xfrm/state", "", 0, 0,
-- 
2.34.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to