diff --git a/systemvm/debian/opt/cloud/bin/cs/CsBgpPeers.py b/systemvm/debian/opt/cloud/bin/cs/CsBgpPeers.py index 38d85f4626fc..b6ba086479e7 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsBgpPeers.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsBgpPeers.py @@ -18,6 +18,7 @@ # under the License. import logging +import os from . import CsHelper from .CsDatabag import CsDataBag from .CsFile import CsFile @@ -25,6 +26,9 @@ FRR_DIR = "/etc/frr/" FRR_DAEMONS = "/etc/frr/daemons" FRR_CONFIG = "/etc/frr/frr.conf" +FRR_RELOAD = "/usr/lib/frr/frr-reload.py" +IP_FORWARDING = "/proc/sys/net/ipv4/ip_forward" +IPV6_FORWARDING = "/proc/sys/net/ipv6/conf/all/forwarding" class CsBgpPeers(CsDataBag): @@ -43,13 +47,10 @@ def process(self): continue self._process_dbag_item(self.dbag[item]) - restart_frr = False - CsHelper.mkdir(FRR_DIR, 0o755, False) self.frr_daemon = CsFile(FRR_DAEMONS) self.frr_daemon.replaceIfFound("bgpd=no", "bgpd=yes") - if self.frr_daemon.commit(): - restart_frr = True + start_bgpd = self.frr_daemon.commit() self.frr_conf = CsFile(FRR_CONFIG) self.frr_conf.repopulate() @@ -58,12 +59,48 @@ def process(self): self._process_peers() self._route_map_set() self._post_set() - if self.frr_conf.commit(): - restart_frr = True - - if restart_frr: - CsHelper.execute("systemctl enable frr") - CsHelper.execute("systemctl restart frr") + conf_changed = self.frr_conf.commit() + + if start_bgpd: + # bgpd only starts with frr, so turning it on needs a restart. + self._restart_frr() + elif conf_changed: + self._reload_frr() + + def _restart_frr(self): + CsHelper.execute("systemctl enable frr") + CsHelper.execute("systemctl restart frr") + + def _reload_frr(self): + # frr-reload.py applies only the differences, so sessions to unchanged peers stay up. + # Templates without frr-pythontools have no frr-reload.py, and restart as before. + if not os.path.isfile(FRR_RELOAD): + logging.info("%s not found, restarting frr" % FRR_RELOAD) + self._restart_frr() + return + # --stdout keeps frr-reload.py from writing its own log file, which records + # every applied line with peer passwords in clear text. + # communicate() reads the output while waiting, so a long output cannot fill the pipe and block. + result = CsHelper.execute2("%s --reload --stdout %s" % (FRR_RELOAD, FRR_CONFIG), False) + # The output is not logged, since it can echo config lines with peer passwords. + result.communicate() + if result.returncode != 0: + logging.error("frr-reload.py failed with exit code %s, restarting frr" % result.returncode) + self._restart_frr() + + @staticmethod + def _kernel_forwarding(path): + try: + with open(path) as f: + return f.read().strip() == "1" + except IOError: + return False + + def _ip_forwarding(self): + return self._kernel_forwarding(IP_FORWARDING) + + def _ipv6_forwarding(self): + return self._kernel_forwarding(IPV6_FORWARDING) def _process_dbag_item(self, item): as_number = item['network_as_number'] @@ -80,6 +117,11 @@ def _pre_set(self): self.frr_conf.add("frr defaults traditional") self.frr_conf.add("hostname {}".format(CsHelper.get_hostname())) self.frr_conf.add("service integrated-vtysh-config") + # zebra shows the kernel's forwarding state in the running config, and frr-reload.py + # deletes running lines the file leaves out. Stating the current state keeps a reload + # from switching forwarding on or off. + self.frr_conf.add("ip forwarding" if self._ip_forwarding() else "no ip forwarding") + self.frr_conf.add("ipv6 forwarding" if self._ipv6_forwarding() else "no ipv6 forwarding") self.frr_conf.add("ip nht resolve-via-default") self.frr_conf.add("ipv6 nht resolve-via-default") return @@ -108,6 +150,8 @@ def _process_peers(self): for as_number in self.peers.keys(): self.frr_conf.add("router bgp {}".format(as_number)) self.frr_conf.add(" bgp router-id {}".format(self.public_ip)) + self.frr_conf.add(" bgp ebgp-requires-policy") + self.frr_conf.add(" bgp network import-check") if self.peers[as_number]['ip6_peers']: self.frr_conf.add(" bgp default ipv6-unicast") for ip4_peer in self.peers[as_number]['ip4_peers']: diff --git a/systemvm/test/TestCsBgpPeers.py b/systemvm/test/TestCsBgpPeers.py index f6de192976e4..c74c50ed72d8 100644 --- a/systemvm/test/TestCsBgpPeers.py +++ b/systemvm/test/TestCsBgpPeers.py @@ -186,8 +186,10 @@ def test_route_map_set(self): ] self.assertEqual(self._frr_conf(), expected) + @mock.patch('cs.CsBgpPeers.CsBgpPeers._ip_forwarding', return_value=True) + @mock.patch('cs.CsBgpPeers.CsBgpPeers._ipv6_forwarding', return_value=True) @mock.patch('cs.CsBgpPeers.CsHelper.get_hostname') - def test_full_frr_conf(self, mock_hostname): + def test_full_frr_conf(self, mock_hostname, mock_ipv6_forwarding, mock_ip_forwarding): mock_hostname.return_value = "r-1001-VM" self.csbgppeers._process_dbag_item(self._peer(ip4_address='100.64.0.1', guest_ip4_cidr='10.1.1.0/24', diff --git a/systemvm/test/TestCsBgpPeersFrr.py b/systemvm/test/TestCsBgpPeersFrr.py new file mode 100644 index 000000000000..02eb06872bac --- /dev/null +++ b/systemvm/test/TestCsBgpPeersFrr.py @@ -0,0 +1,167 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +"""Tests for how CsBgpPeers writes and applies frr.conf on a router with BGP peers. + +Once bgpd runs, changes are applied with frr-reload.py and frr is not +restarted, so sessions to unchanged peers stay up. Because frr-reload.py +deletes any running line the file leaves out, the file states the BGP defaults +it relies on and the kernel's forwarding setting for both address families. +""" + +import os +import re +import unittest +try: + import mock +except ImportError: + from unittest import mock + +from vr_test_helpers import VrSandbox, FakeShell + +from cs.CsBgpPeers import CsBgpPeers +from cs import CsBgpPeers as bgppeers_module + +OPERATOR_PEER = {'peer_id': 1, 'network_id': 100, 'network_as_number': 64600, 'peer_as_number': 65100, + 'ip4_address': '198.51.100.1', 'guest_ip4_cidr': '172.16.10.0/24', 'details': {}} + + +class OperatorFrrTestCase(unittest.TestCase): + """Runs CsBgpPeers.process() in a sandbox and records the shell commands.""" + + def run_operator(self, peer=None, bgpd_running=True, frr_reload=True, reload_returncode=0, + ip_forwarding=True, ipv6_forwarding=False): + bag = {"id": "bgppeers", "1-100": dict(peer or OPERATOR_PEER)} + sandbox = VrSandbox(mode="routed", extra={"bgppeers.json": bag}) + self.addCleanup(sandbox.close) + self.shell = FakeShell(returncode=reload_returncode) + self.conf = sandbox.path("frr.conf") + daemons = sandbox.path("daemons") + with open(daemons, "w") as f: + f.write("bgpd=%s\nbfdd=no\n" % ("yes" if bgpd_running else "no")) + reload_script = sandbox.path("frr-reload.py") + if frr_reload: + open(reload_script, "w").close() + patches = [mock.patch('cs.CsHelper.execute', side_effect=self.shell.execute), + mock.patch('cs.CsHelper.execute2', side_effect=self.shell.execute2), + mock.patch('cs.CsHelper.mkdir'), + mock.patch('cs.CsHelper.get_hostname', return_value="r-1001-VM"), + mock.patch.object(bgppeers_module, "FRR_DIR", sandbox.dir + os.sep), + mock.patch.object(bgppeers_module, "FRR_CONFIG", self.conf), + mock.patch.object(bgppeers_module, "FRR_DAEMONS", daemons), + mock.patch.object(bgppeers_module, "FRR_RELOAD", reload_script), + mock.patch.object(CsBgpPeers, "_ip_forwarding", return_value=ip_forwarding), + mock.patch.object(CsBgpPeers, "_ipv6_forwarding", return_value=ipv6_forwarding)] + for p in patches: + p.start() + self.addCleanup(p.stop) + try: + CsBgpPeers("bgppeers", sandbox.config).process() + except (TypeError, KeyError, AttributeError, ValueError) as e: + self.fail("CsBgpPeers failed on databag %r: %r" % (bag, e)) + with open(self.conf) as f: + return [line.rstrip('\n') for line in f] + + def router_block(self, lines): + start = [i for i, x in enumerate(lines) if x.startswith("router bgp ")] + self.assertEqual(len(start), 1, lines) + end = next((i for i in range(start[0] + 1, len(lines)) if not lines[i].startswith(" ")), len(lines)) + return lines[start[0]:end] + + +class TestCsBgpPeersFrrReload(OperatorFrrTestCase): + """Changes go through frr-reload.py, and the file states every global setting.""" + + def test_operator_applies_with_frr_reload(self): + # bgpd already runs, so a change reloads and other sessions stay up. + self.run_operator() + self.assertTrue([c for c in self.shell.commands if "frr-reload.py" in c], self.shell.commands) + self.assertFalse([c for c in self.shell.commands if re.search(r'systemctl restart frr|service frr restart', c)], + self.shell.commands) + + def test_operator_restarts_frr_when_turning_bgpd_on(self): + # bgpd starts only with frr, so the first configuration restarts it. + self.run_operator(bgpd_running=False) + self.assertTrue([c for c in self.shell.commands if c == "systemctl restart frr"], self.shell.commands) + self.assertFalse([c for c in self.shell.commands if "frr-reload.py" in c], self.shell.commands) + + def test_operator_restarts_frr_without_frr_reload(self): + # A template without frr-reload.py restarts frr as before. + self.run_operator(frr_reload=False) + self.assertTrue([c for c in self.shell.commands if c == "systemctl restart frr"], self.shell.commands) + self.assertFalse([c for c in self.shell.commands if "frr-reload.py" in c], self.shell.commands) + + def test_operator_frr_reload_logs_to_stdout(self): + # Without --stdout, frr-reload.py writes its own log file with peer passwords in it. + self.run_operator() + reloads = [c for c in self.shell.commands if "frr-reload.py" in c] + self.assertEqual(len(reloads), 1, self.shell.commands) + args = reloads[0].split() + self.assertEqual(args[0], bgppeers_module.FRR_RELOAD) + self.assertIn("--reload", args) + self.assertIn("--stdout", args) + self.assertEqual(args[-1], self.conf) + + def test_operator_reads_frr_reload_output_while_waiting(self): + # A wait with unread output pipes blocks once frr-reload.py fills a pipe. + self.run_operator() + self.assertFalse([c for c in self.shell.waited if "frr-reload.py" in c], self.shell.waited) + self.assertTrue([c for c in self.shell.communicated if "frr-reload.py" in c], self.shell.communicated) + + def test_operator_restarts_frr_when_frr_reload_fails(self): + # A failed reload restarts frr, so the new file is still applied. + self.run_operator(reload_returncode=1) + reload_at = [i for i, c in enumerate(self.shell.commands) if "frr-reload.py" in c] + restart_at = [i for i, c in enumerate(self.shell.commands) if c == "systemctl restart frr"] + self.assertTrue(reload_at, self.shell.commands) + self.assertTrue(restart_at, self.shell.commands) + self.assertLess(reload_at[0], restart_at[0]) + + def test_operator_defaults_lines(self): + # No version line, so FRR uses the installed version's defaults. The two the + # router relies on are stated, so a reload never depends on those defaults. + lines = self.run_operator() + self.assertEqual(lines[0], "frr defaults traditional") + self.assertFalse([x for x in lines if x.startswith("frr version")], lines) + block = self.router_block(lines) + self.assertIn(" bgp ebgp-requires-policy", block) + self.assertIn(" bgp network import-check", block) + self.assertEqual(lines[-1], "line vty") + + def test_operator_states_forwarding_off_from_kernel(self): + # zebra shows "no ipv6 forwarding" while the kernel has it off, and frr-reload.py + # deletes running lines the file leaves out. Stating it keeps a reload from + # switching forwarding on. + lines = self.run_operator(ip_forwarding=False, ipv6_forwarding=False) + self.assertIn("no ip forwarding", lines) + self.assertIn("no ipv6 forwarding", lines) + self.assertNotIn("ip forwarding", lines) + self.assertNotIn("ipv6 forwarding", lines) + + def test_operator_states_forwarding_on_from_kernel(self): + lines = self.run_operator(ip_forwarding=True, ipv6_forwarding=True) + self.assertIn("ip forwarding", lines) + self.assertIn("ipv6 forwarding", lines) + self.assertNotIn("no ip forwarding", lines) + self.assertNotIn("no ipv6 forwarding", lines) + + def test_operator_render_is_deterministic(self): + self.assertEqual(self.run_operator(), self.run_operator()) + + +if __name__ == '__main__': + unittest.main() diff --git a/systemvm/test/__init__.py b/systemvm/test/__init__.py index e408e0ca0fef..d60eec2704e4 100755 --- a/systemvm/test/__init__.py +++ b/systemvm/test/__init__.py @@ -18,3 +18,5 @@ import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..", "debian/opt/cloud/bin")) +# Shared test helpers sit beside the tests. +sys.path.append(os.path.dirname(os.path.abspath(__file__))) diff --git a/systemvm/test/fixtures/router/cmdline-natted.json b/systemvm/test/fixtures/router/cmdline-natted.json new file mode 100644 index 000000000000..d479443ca17c --- /dev/null +++ b/systemvm/test/fixtures/router/cmdline-natted.json @@ -0,0 +1,14 @@ +{ + "config": { + "dns1": "203.0.113.53", + "domain": "cs1cloud.internal", + "has_public_network": "true", + "is_routed": "false", + "name": "r-1001-VM", + "redundant_router": "false", + "source_nat_ip": "198.51.100.10", + "type": "vpcrouter", + "vpccidr": "172.16.0.0/16" + }, + "id": "cmdline" +} diff --git a/systemvm/test/fixtures/router/cmdline-routed.json b/systemvm/test/fixtures/router/cmdline-routed.json new file mode 100644 index 000000000000..3420a34c1fe1 --- /dev/null +++ b/systemvm/test/fixtures/router/cmdline-routed.json @@ -0,0 +1,14 @@ +{ + "config": { + "dns1": "203.0.113.53", + "domain": "cs1cloud.internal", + "has_public_network": "true", + "is_routed": "true", + "name": "r-1001-VM", + "redundant_router": "false", + "source_nat_ip": "198.51.100.10", + "type": "vpcrouter", + "vpccidr": "172.16.0.0/16" + }, + "id": "cmdline" +} diff --git a/systemvm/test/fixtures/router/ips.json b/systemvm/test/fixtures/router/ips.json new file mode 100644 index 000000000000..bf9469c8ae0f --- /dev/null +++ b/systemvm/test/fixtures/router/ips.json @@ -0,0 +1,146 @@ +{ + "eth0": [ + { + "add": true, + "broadcast": "169.254.255.255", + "cidr": "169.254.10.20/16", + "device": "eth0", + "gateway": null, + "is_private_gateway": false, + "netmask": "255.255.0.0", + "network": "169.254.0.0/16", + "nw_type": "control", + "one_to_one_nat": false, + "public_ip": "169.254.10.20", + "size": "16", + "source_nat": false + } + ], + "eth1": [ + { + "add": true, + "broadcast": "198.51.100.255", + "cidr": "198.51.100.10/24", + "device": "eth1", + "gateway": "198.51.100.1", + "is_private_gateway": false, + "mtu": "1500", + "netmask": "255.255.255.0", + "network": "198.51.100.0/24", + "nw_type": "public", + "one_to_one_nat": false, + "public_ip": "198.51.100.10", + "size": "24", + "source_nat": true + } + ], + "eth2": [ + { + "add": true, + "broadcast": "172.16.10.255", + "cidr": "172.16.10.1/24", + "device": "eth2", + "gateway": "172.16.10.1", + "is_private_gateway": false, + "mtu": "1500", + "netmask": "255.255.255.0", + "network": "172.16.10.0/24", + "nw_type": "guest", + "one_to_one_nat": false, + "public_ip": "172.16.10.1", + "size": "24", + "source_nat": false + } + ], + "eth3": [ + { + "add": true, + "broadcast": "100.64.0.3", + "cidr": "100.64.0.1/30", + "device": "eth3", + "gateway": "100.64.0.2", + "is_private_gateway": true, + "mtu": "9000", + "netmask": "255.255.255.252", + "network": "100.64.0.0/30", + "nw_type": "public", + "one_to_one_nat": false, + "public_ip": "100.64.0.1", + "size": "30", + "source_nat": false + } + ], + "eth4": [ + { + "add": true, + "broadcast": "172.16.20.255", + "cidr": "172.16.20.1/24", + "device": "eth4", + "gateway": "172.16.20.1", + "is_private_gateway": false, + "mtu": "1500", + "netmask": "255.255.255.0", + "network": "172.16.20.0/24", + "nw_type": "guest", + "one_to_one_nat": false, + "public_ip": "172.16.20.1", + "size": "24", + "source_nat": false + } + ], + "eth5": [ + { + "add": true, + "broadcast": "100.64.0.7", + "cidr": "100.64.0.5/30", + "device": "eth5", + "gateway": "100.64.0.6", + "is_private_gateway": true, + "mtu": "9000", + "netmask": "255.255.255.252", + "network": "100.64.0.4/30", + "nw_type": "public", + "one_to_one_nat": false, + "public_ip": "100.64.0.5", + "size": "30", + "source_nat": false + } + ], + "eth6": [ + { + "add": true, + "broadcast": "100.64.0.11", + "cidr": "100.64.0.9/30", + "device": "eth6", + "gateway": "100.64.0.10", + "is_private_gateway": true, + "mtu": "9000", + "netmask": "255.255.255.252", + "network": "100.64.0.8/30", + "nw_type": "public", + "one_to_one_nat": false, + "public_ip": "100.64.0.9", + "size": "30", + "source_nat": false + } + ], + "eth7": [ + { + "add": true, + "broadcast": "100.64.0.15", + "cidr": "100.64.0.13/30", + "device": "eth7", + "gateway": "100.64.0.14", + "is_private_gateway": true, + "mtu": "9000", + "netmask": "255.255.255.252", + "network": "100.64.0.12/30", + "nw_type": "public", + "one_to_one_nat": false, + "public_ip": "100.64.0.13", + "size": "30", + "source_nat": false + } + ], + "id": "ips" +} diff --git a/systemvm/test/frr-bgppeers-ipv4-ipv6.conf b/systemvm/test/frr-bgppeers-ipv4-ipv6.conf index 9881e1c87dc1..3539cc4bebd7 100644 --- a/systemvm/test/frr-bgppeers-ipv4-ipv6.conf +++ b/systemvm/test/frr-bgppeers-ipv4-ipv6.conf @@ -17,6 +17,8 @@ frr defaults traditional hostname r-1001-VM service integrated-vtysh-config +ip forwarding +ipv6 forwarding ip nht resolve-via-default ipv6 nht resolve-via-default ip prefix-list all-v4 seq 1 permit any @@ -27,6 +29,8 @@ ip prefix-list local-v4 seq 1 permit 10.1.1.0/24 ipv6 prefix-list local-v6 seq 1 permit 2001:db8:100::/64 router bgp 64512 bgp router-id 100.64.0.10 + bgp ebgp-requires-policy + bgp network import-check bgp default ipv6-unicast neighbor 100.64.0.1 remote-as 64496 neighbor 2001:db8::1 remote-as 64496 diff --git a/systemvm/test/vr_test_helpers.py b/systemvm/test/vr_test_helpers.py new file mode 100644 index 000000000000..bdf9a67abb9a --- /dev/null +++ b/systemvm/test/vr_test_helpers.py @@ -0,0 +1,133 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +"""Helpers for systemvm tests that run the VR scripts against a temporary databag directory. + +VrSandbox copies a cmdline databag and an ips databag from fixtures/router +into a temporary folder and points the databag path at it, so the tests never +read or write /etc/cloudstack. It also resets the cached cmdline on CsConfig, +which other tests share. close() restores both. + +FakeShell records the commands the scripts pass to CsHelper.execute and +CsHelper.execute2. +""" + +import json +import os +import shutil +import tempfile + +from cs.CsConfig import CsConfig +import merge + +# Folders searched in order by fixture_path(). +FIXTURE_DIRS = [os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures", "router")] + + +def fixture_path(name): + for directory in FIXTURE_DIRS: + path = os.path.join(directory, name) + if os.path.exists(path): + return path + return os.path.join(FIXTURE_DIRS[0], name) + + +def load_json(name): + with open(fixture_path(name)) as f: + return json.load(f) + + +def load_conf(name): + """Read an expected frr.conf fixture. Lines starting with # are the licence header and notes.""" + with open(fixture_path(name)) as f: + return [line.rstrip('\n') for line in f if not line.startswith("#")] + + +class VrSandbox(object): + """A VR databag directory in a temporary folder. + + mode is "natted" or "routed" and picks the cmdline fixture. + ips is a fixture name or a dict. extra maps databag file names to their contents. + """ + + def __init__(self, mode="natted", ips="ips.json", extra=None): + self.dir = tempfile.mkdtemp(prefix="vr-test-") + self.old_dpath = merge.DataBag.DPATH + self.old_cl = CsConfig.cl + self.old_gn = CsConfig.gn + shutil.copy(fixture_path("cmdline-%s.json" % mode), os.path.join(self.dir, "cmdline.json")) + if isinstance(ips, dict): + self.write("ips.json", ips) + else: + shutil.copy(fixture_path(ips), os.path.join(self.dir, "ips.json")) + for name, data in (extra or {}).items(): + self.write(name, data) + merge.DataBag.DPATH = self.dir + CsConfig.cl = None + CsConfig.gn = None + self.config = CsConfig() + self.config.cmdline() + self.config.set_address() + + def write(self, name, data): + with open(os.path.join(self.dir, name), "w") as f: + json.dump(data, f) + + def path(self, name): + return os.path.join(self.dir, name) + + def close(self): + merge.DataBag.DPATH = self.old_dpath + CsConfig.cl = self.old_cl + CsConfig.gn = self.old_gn + shutil.rmtree(self.dir, ignore_errors=True) + + +class FakeShell(object): + """Records CsHelper.execute and CsHelper.execute2 commands. execute returns no output. + + execute2 returns a process result with the given return code. waited lists the + execute2 commands run with wait=True, and communicated those whose output was read. + """ + + def __init__(self, returncode=0): + self.commands = [] + self.returncode = returncode + self.waited = [] + self.communicated = [] + + def execute(self, command): + self.commands.append(command) + return [] + + def execute2(self, command, wait=True): + self.commands.append(command) + if wait: + self.waited.append(command) + shell = self + shell_returncode = self.returncode + + class Result(object): + returncode = shell_returncode + + def communicate(self): + shell.communicated.append(command) + return (b"", b"") + + def wait(self): + return self.returncode + return Result() diff --git a/tools/appliance/systemvmtemplate/scripts/install_systemvm_packages.sh b/tools/appliance/systemvmtemplate/scripts/install_systemvm_packages.sh index d391b5c4e192..f3fe3d84cc35 100755 --- a/tools/appliance/systemvmtemplate/scripts/install_systemvm_packages.sh +++ b/tools/appliance/systemvmtemplate/scripts/install_systemvm_packages.sh @@ -73,7 +73,7 @@ function install_packages() { haproxy \ haveged \ radvd \ - frr \ + frr frr-pythontools \ sharutils genisoimage \ strongswan libcharon-extra-plugins libstrongswan-extra-plugins strongswan-charon strongswan-starter \ virt-what open-vm-tools qemu-guest-agent hyperv-daemons cloud-guest-utils \