X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fprovisioner.py;h=33c13f12666000bc11e2f8407865617db50a146a;hp=243d67da30f4a7981defd9569ff6d188c324b349;hb=f2c51f9717e2195e9283e07971c71be135e61a2b;hpb=0cd1c02c85f5dbd6d06bd28b79f964fb209ee90a diff --git a/n2vc/provisioner.py b/n2vc/provisioner.py index 243d67d..33c13f1 100644 --- a/n2vc/provisioner.py +++ b/n2vc/provisioner.py @@ -73,6 +73,7 @@ fi IPTABLES_SCRIPT = """#!/bin/bash set -e +apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -yqq iptables-persistent iptables -t nat -A OUTPUT -p tcp -d {} -j DNAT --to-destination {} netfilter-persistent save @@ -396,6 +397,7 @@ class SSHProvisioner: retry = 10 attempts = 0 delay = 15 + while attempts <= retry: try: attempts += 1