summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2020-07-09 09:47:53 -0700
committerGitHub <noreply@github.com>2020-07-09 09:47:53 -0700
commitec5e94afc7a51b89efe15094f735df411db030fb (patch)
tree5e8d2bcad80b9e5fa42fa3b778479cb066fcdf51
parentb57379c6b204870a568ccc7adcad1712e715a536 (diff)
parentce9c2a594d64b403495f8824fe16dfc952a99531 (diff)
Merge pull request #117 from Rahix/hws/tftp-binding
Make docker bind the TFTP server to the correct interface
-rwxr-xr-xlavalab-gen.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index a0cb89d..fa1d38f 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -558,7 +558,10 @@ def main():
if "use_tftp" in worker:
use_tftp = worker["use_tftp"]
if use_tftp:
- dockcomp["services"][name]["ports"].append("69:69/udp")
+ if "dispatcher_ip" in worker:
+ dockcomp["services"][name]["ports"].append(worker["dispatcher_ip"] + ":69:69/udp")
+ else:
+ dockcomp["services"][name]["ports"].append("69:69/udp")
use_docker = False
if "use_docker" in worker:
use_docker = worker["use_docker"]