summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-29 17:54:16 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-29 17:54:16 +0100
commitb6086681007ce61ecbc9a2f5a514dbcfb956f49a (patch)
tree2e63ec5dee606bd20f2a0a1e88c15c4149cee8dd
parent3169f1270fe8217fe57c9301e48b550539f14b77 (diff)
downloadvyos-1x-b6086681007ce61ecbc9a2f5a514dbcfb956f49a.tar.gz
vyos-1x-b6086681007ce61ecbc9a2f5a514dbcfb956f49a.zip
smoketest: dhcp-relay: T3095: remove non referenced function from unittest
-rw-r--r--data/templates/dhcp-relay/dhcrelay.conf.tmpl2
-rwxr-xr-xsmoketest/scripts/cli/test_service_dhcp-relay.py8
2 files changed, 1 insertions, 9 deletions
diff --git a/data/templates/dhcp-relay/dhcrelay.conf.tmpl b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
index df990207b..a9d17ed9a 100644
--- a/data/templates/dhcp-relay/dhcrelay.conf.tmpl
+++ b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
@@ -2,5 +2,5 @@
{% set max_size = '-A ' + relay_options.max_size if relay_options.max_size is defined and relay_options.max_size is not none %}
{# hop_count and relay_agents_packets is a default option, thus it is always present #}
-OPTIONS="-4 -c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"
+OPTIONS="-c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"
diff --git a/smoketest/scripts/cli/test_service_dhcp-relay.py b/smoketest/scripts/cli/test_service_dhcp-relay.py
index d56f6aa16..4b020db72 100755
--- a/smoketest/scripts/cli/test_service_dhcp-relay.py
+++ b/smoketest/scripts/cli/test_service_dhcp-relay.py
@@ -29,17 +29,9 @@ PROCESS_NAME = 'dhcrelay'
RELAY_CONF = '/run/dhcp-relay/dhcrelay.conf'
base_path = ['service', 'dhcp-relay']
-def get_config_value(key):
- tmp = read_file(SSHD_CONF)
- tmp = re.findall(f'\n?{key}\s+(.*)', tmp)
- return tmp
-
class TestServiceDHCPRelay(unittest.TestCase):
def setUp(self):
self.session = ConfigSession(os.getpid())
- # ensure we can also run this test on a live system - so lets clean
- # out the current configuration :)
- self.session.delete(base_path)
def tearDown(self):
self.session.delete(base_path)