From df509c3aae4a6c28c7135e09e1b095d17102aa31 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 1 Jul 2022 10:24:19 +0200 Subject: [PATCH] add endstation gateways --- startup.script_linux | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/startup.script_linux b/startup.script_linux index 56d7532..bfa0aea 100644 --- a/startup.script_linux +++ b/startup.script_linux @@ -20,6 +20,9 @@ system "ip a s `ip r|awk '/^default /{print $5;exit}'`|awk -F'[/ ]+' -vP='epicsE < /tmp/$(IOC).net system "rm /tmp/$(IOC).net" +# Default, we will switch it off when necessary +epicsEnvSet EPICS_CA_AUTO_ADDR_LIST YES + # Office (only officicial EPICS subnets, not SLS beamlines!) ifEnvSet $(IP_ADDR) ~129.129.130.* EPICS_CA_ADDR_LIST "129.129.131.255 129.129.137.255" ifEnvSet $(IP_ADDR) ~129.129.131.* EPICS_CA_ADDR_LIST "129.129.130.255 129.129.137.255" @@ -49,10 +52,9 @@ ifEnvSet $(IP_ADDR) ~129.129.118.* EPICS_CA_ADDR_LIST sls-x10sa-cagw.psi.ch:5832 ifEnvSet $(IP_ADDR) ~129.129.121.* EPICS_CA_ADDR_LIST sls-x11ma-cagw.psi.ch:5834 ifEnvSet $(IP_ADDR) ~129.129.122.* EPICS_CA_ADDR_LIST sls-x12sa-cagw.psi.ch:5836 - # SwissFEL machine networks # with directed broadcasts -ifEnvSet $(IP_ADDR) ~172.26.* EPICS_CA_ADDR_LIST "172.26.0.255 172.26.2.255 172.26.8.255 172.26.16.255 172.26.24.255 172.26.32.255 172.26.40.255 172.26.110.255 172.26.111.255 172.26.120.255 129.129.242.255 129.129.243.255" +ifEnvSet $(IP_ADDR) ~172.26.* EPICS_CA_ADDR_LIST "172.26.0.255 172.26.2.255 172.26.8.255 172.26.16.255 172.26.24.255 172.26.32.255 172.26.40.255 172.26.110.255 172.26.111.255 172.26.120.255 saresa-cagw.psi.ch:5062 saresb-cagw.psi.ch:5062 saresc-cagw.psi.ch:5062 satese-cagw.psi.ch:5062 satesf-cagw.psi.ch:5062" ifEnvSet $(IP_ADDR) ~172.26.* EPICS_CA_AUTO_ADDR_LIST NO # SwissFEL end stations to machine via gateway