summaryrefslogtreecommitdiff
path: root/ipsec
diff options
context:
space:
mode:
authorMohammad Heib <mheib@redhat.com>2022-02-09 13:18:40 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-03-07 13:19:54 +0100
commit7baed8fe6b90665c8d29c66920e4502a9b6f0ba5 (patch)
treeecf101f1971be292be597f4e0c30b8ef1664adef /ipsec
parenta9f5ee1199e1a944ec58b294f6df58f9031863a8 (diff)
downloadopenvswitch-7baed8fe6b90665c8d29c66920e4502a9b6f0ba5.tar.gz
ovs-monitor-ipsec: Add list-commands command.
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. Acked-by: Mike Pattrick <mkp@redhat.com> Signed-off-by: Mohammad Heib <mheib@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ipsec')
-rwxr-xr-xipsec/ovs-monitor-ipsec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsec/ovs-monitor-ipsec.in b/ipsec/ovs-monitor-ipsec.in
index 631a8fca8..c9f3cc5a1 100755
--- a/ipsec/ovs-monitor-ipsec.in
+++ b/ipsec/ovs-monitor-ipsec.in
@@ -1320,7 +1320,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,