From b8671b56c153055a2906af14f63b5818b189d808 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 1 Jun 2022 16:42:53 +0000 Subject: sla: T4222: Add OWAMP and TWAMP for service sla OWAMP is a command line client application and a policy daemon used to determine one way latencies between hosts. OWAMP session control uses traditional client-server communication between a control-client and a server, TWAMP (two-way active measurement protocol) Add configuration and operation modes set service sla owamp-server set service sla twamp-server run force owping 192.0.2.120 run force twping 192.0.2.190 --- data/templates/sla/twamp-override.conf.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/templates/sla/twamp-override.conf.j2 (limited to 'data/templates/sla/twamp-override.conf.j2') diff --git a/data/templates/sla/twamp-override.conf.j2 b/data/templates/sla/twamp-override.conf.j2 new file mode 100644 index 000000000..34bbd228b --- /dev/null +++ b/data/templates/sla/twamp-override.conf.j2 @@ -0,0 +1,16 @@ +[Unit] +Description==TWAMP server +After=vyos-router.service +# Only start if there is a configuration file +ConditionFileNotEmpty=/etc/twamp-server/twamp-server.conf + +[Service] +KillMode=process +Type=simple +ExecStart=/usr/sbin/twampd -c /etc/twamp-server -R /var/run +ExecReload=/bin/kill -HUP $MAINPID +PIDFile=/run/twamp-server.pid +LimitNOFILE=4096 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3