Skip to content

Commit

Permalink
L2TPTunnelRecipe.py: Fix storing tunneled IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba314 committed Jan 17, 2024
1 parent e1fa702 commit 6297046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lnst/Recipes/ENRT/L2TPTunnelRecipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from lnst.Common.IpAddress import (
AF_INET,
AF_INET6,
Ip4Address,
interface_addresses,
)
from lnst.Common.Parameters import (
Expand Down Expand Up @@ -153,8 +154,8 @@ def create_tunnel(
for device in [host1.l2tp_session1, host2.l2tp_session1]:
device.up()

ip1 = "10.42.1.1/8"
ip2 = "10.42.1.2/8"
ip1 = Ip4Address("10.42.1.1/8")
ip2 = Ip4Address("10.42.1.2/8")
config.configure_and_track_ip(host1.l2tp_session1, ip1, peer=ip2)
config.configure_and_track_ip(host2.l2tp_session1, ip2, peer=ip1)

Expand Down

0 comments on commit 6297046

Please sign in to comment.