From 15d5ad956de90409b5b767cbb2daf9783ff0b0ca Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 17 Mar 2021 15:08:45 +0100 Subject: [PATCH] Adding config of nsrports if backup is ebabled. --- lib/cr_tf/handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 8a3b9f6..9397f45 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.4.5' +__version__ = '3.4.6' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2647,9 +2647,11 @@ class CreateTerraformHandler(BaseHandler): "if [ ! -f /nsr/res/servers ] ; then " "echo 'legato01.pixelpark.com' > /nsr/res/servers; fi") commands.append("systemctl start networker.service; sleep 2") + commands.append("nsrports -S 7937-7999; sleep 2") commands.append("systemctl stop networker.service; sleep 2") commands.append( "systemctl enable networker.service; systemctl start networker.service; sleep 2") + commands.append("nsrports; sleep 2") else: commands.append("systemctl disable networker.service") -- 2.39.5