Skip to content

Commit

Permalink
FEAT: Add restore service
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Oct 31, 2024
1 parent c67fb09 commit 801d183
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/configure-ovn-lxd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -511,3 +511,23 @@ lxc config set network.ovn.northbound_connection=ssl:${LISTEN_IP}:6641
lxc network create ovntest --type=ovn network=lxdbr0 ipv4.address=10.68.223.1/24 ipv4.nat=true volatile.network.ipv4.address=192.168.48.192

sudo ip route add 10.68.223.0/24 via 192.168.48.192

cat > /tmp/ovn-routes.service <<EOF
[Install]
WantedBy = multi-user.target
[Unit]
After = snap.lxd.activate.service
Description = Service for routes to lxd ovn network
[Service]
Type = oneshot
TimeoutStopSec = 30
Restart = on-failure
SyslogIdentifier = restore-ovn-routes
ExecStart = sudo ip route add 10.68.223.0/24 via 192.168.48.192
EOF

sudo cp /tmp/ovn-routes.service /etc/systemd/system/ovn-routes.service
sudo systemctl daemon-reload
sudo systemctl enable ovn-routes.service

0 comments on commit 801d183

Please sign in to comment.