From 80770bc6fe49f1481337eefe8e8fc42155e1964a Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 20 Aug 2018 21:05:35 +0000 Subject: remove show/interfaces/node.def from generated tree --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 70101181d..b1d4f622c 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ op_mode_definitions: # XXX: delete top level op mode node.def's that now live in other packages rm -f $(OP_TMPL_DIR)/set/node.def rm -f $(OP_TMPL_DIR)/show/node.def + rm -f $(TMPL_DIR)/interfaces/node.def rm -f $(OP_TMPL_DIR)/reset/node.def rm -f $(OP_TMPL_DIR)/restart/node.def rm -f $(OP_TMPL_DIR)/monitor/node.def @@ -41,7 +42,7 @@ clean: .PHONY: test test: - PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose +# PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose .PHONY: sonar sonar: -- cgit v1.2.3 From 9c27337b01bfa3960f75263b838482616d6de2bd Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 20 Aug 2018 21:08:27 +0000 Subject: show/interfecaces/node.def removal --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1d4f622c..17ae34a18 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ op_mode_definitions: # XXX: delete top level op mode node.def's that now live in other packages rm -f $(OP_TMPL_DIR)/set/node.def rm -f $(OP_TMPL_DIR)/show/node.def - rm -f $(TMPL_DIR)/interfaces/node.def + rm -f $(OP_TMPL_DIR)/show/interfaces/node.def rm -f $(OP_TMPL_DIR)/reset/node.def rm -f $(OP_TMPL_DIR)/restart/node.def rm -f $(OP_TMPL_DIR)/monitor/node.def -- cgit v1.2.3 From b3892fe872202b97d8ed58a60d15d7d0efa7a22f Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 20 Aug 2018 21:39:06 +0000 Subject: T790: wireguard: add status commands --- Makefile | 2 +- op-mode-definitions/wireguard.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 17ae34a18..b626bbd8b 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ clean: .PHONY: test test: -# PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose + PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators --verbose .PHONY: sonar sonar: diff --git a/op-mode-definitions/wireguard.xml b/op-mode-definitions/wireguard.xml index 29fce33b6..a7e156d8d 100644 --- a/op-mode-definitions/wireguard.xml +++ b/op-mode-definitions/wireguard.xml @@ -36,6 +36,40 @@ + + + + + show wireguard interface information + + + + + sudo wg show "$4" + + + + show all allowed-ips for the specified interface + + sudo wg show "$4" allowed-ips + + + + show all endpoints for the specified interface + + sudo wg show "$4" endpoints + + + + show all peer IDs for the specified interface + + sudo wg show "$4" peers + + + + + + -- cgit v1.2.3