Skip to content

Commit

Permalink
Add destination ip
Browse files Browse the repository at this point in the history
  • Loading branch information
todaywasawesome committed Apr 27, 2021
1 parent bc5bd78 commit ae8068c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions advertise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import os

hostip = os.environ['HOST_IP']
destip = os.environ['DEST_IP']

print("Container started")
while True:
send(IP(src=hostip, dst="8.8.8.8")/ICMP())
print("Sent from", hostip, "sleep 2.5 mins")
send(IP(src=hostip, dst=destip)/ICMP())
print("Sent from", hostip, "to", destip,"sleep 2.5 mins")
time.sleep(150)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: metallb-google-wifi-announce
image: todaywasawesome/metallb-google-wifi-announce
image: todaywasawesome/metallb-google-wifi-announce:latest
env:
- name: HOST_IP
value: "10.0.0.20" #Change to whatever ip you're trying to advertise

0 comments on commit ae8068c

Please sign in to comment.