From 6539f908e17c17a4a931e9638af9487e341bdcae Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 3 Aug 2020 18:00:12 +0200 Subject: op-mode: ping: T1600: initial XML implementation --- Makefile | 4 ++++ op-mode-definitions/ping.xml | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 op-mode-definitions/ping.xml diff --git a/Makefile b/Makefile index 2773642d0..5b7e4da63 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,10 @@ op_mode_definitions: rm -f $(OP_TMPL_DIR)/delete/node.def rm -f $(OP_TMPL_DIR)/reset/vpn/node.def + # XXX: ping must be able to recursivly call itself as the + # options are provided from the script itself + ln -s ../node.tag $(OP_TMPL_DIR)/ping/node.tag/node.tag/ + .PHONY: component_versions .ONESHELL: component_versions: $(BUILD_DIR) $(obj) diff --git a/op-mode-definitions/ping.xml b/op-mode-definitions/ping.xml new file mode 100644 index 000000000..4c25a59ab --- /dev/null +++ b/op-mode-definitions/ping.xml @@ -0,0 +1,23 @@ + + + + + Send Internet Control Message Protocol (ICMP) echo request + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + ${vyos_op_scripts_dir}/ping.py ${@:2} + + + + Ping options + + + + + ${vyos_op_scripts_dir}/ping.py ${@:2} + + + + -- cgit v1.2.3