diff options
author | hagbard <vyosdev@derith.de> | 2019-09-26 11:06:41 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-09-26 11:06:41 -0700 |
commit | 0c6faf26823fb984b3e0a77ee014e20661163e44 (patch) | |
tree | ba8c48d053ee88656ca68385e9bf9e8772b635a4 /op-mode-definitions | |
parent | 132c7c7470715f453adf05eb077f55b6fff23c06 (diff) | |
download | vyos-1x-0c6faf26823fb984b3e0a77ee014e20661163e44.tar.gz vyos-1x-0c6faf26823fb984b3e0a77ee014e20661163e44.zip |
pppoe-server: T1690 - restart op-mode commands for pppoe-server
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/pppoe-server.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml index a2366c710..1f6f7f844 100644 --- a/op-mode-definitions/pppoe-server.xml +++ b/op-mode-definitions/pppoe-server.xml @@ -29,4 +29,14 @@ </node> </children> </node> + <node name="restart"> + <children> + <leafNode name="pppoe-server"> + <properties> + <help>Restarts pppoe-server</help> + </properties> + <command>if [ -e /var/run/accel_pppoe.pid ]; then /usr/bin/accel-cmd restart -p 2001; else echo "pppoe-server not running"; fi</command> + </leafNode> + </children> + </node> </interfaceDefinition> |