diff options
| -rw-r--r-- | op-mode-definitions/traffic-dump.xml.in | 4 | ||||
| -rwxr-xr-x | smoketest/scripts/cli/test_interfaces_pppoe.py | 21 | 
2 files changed, 23 insertions, 2 deletions
| diff --git a/op-mode-definitions/traffic-dump.xml.in b/op-mode-definitions/traffic-dump.xml.in index cd0d459ca..76e3ddce5 100644 --- a/op-mode-definitions/traffic-dump.xml.in +++ b/op-mode-definitions/traffic-dump.xml.in @@ -16,7 +16,7 @@                </completionHelp>              </properties>              <children> -              <tagNode name="verbose"> +              <node name="verbose">                  <command>sudo tcpdump -vvv -ne -i $4</command>                  <properties>                    <help>Provide more detailed packets for each monitored traffic</help> @@ -43,7 +43,7 @@                      </children>                    </tagNode>                  </children> -              </tagNode> +              </node>                <tagNode name="filter">                  <command>sudo tcpdump -n -i $4 "${@:6}"</command>                  <properties> diff --git a/smoketest/scripts/cli/test_interfaces_pppoe.py b/smoketest/scripts/cli/test_interfaces_pppoe.py index 6bfe35d86..285c756e2 100755 --- a/smoketest/scripts/cli/test_interfaces_pppoe.py +++ b/smoketest/scripts/cli/test_interfaces_pppoe.py @@ -97,6 +97,27 @@ class PPPoEInterfaceTest(unittest.TestCase):              self.assertTrue(running) + +    def test_pppoe_clent_disabled_interface(self): +        # Check if PPPoE Client can be disabled +        for interface in self._interfaces: +            self.session.set(base_path + [interface, 'authentication', 'user', 'vyos']) +            self.session.set(base_path + [interface, 'authentication', 'password', 'vyos']) +            self.session.set(base_path + [interface, 'source-interface', self._source_interface]) +            self.session.set(base_path + [interface, 'disable']) + +            self.session.commit() + +        # Validate PPPoE client process +        running = False +        for interface in self._interfaces: +            for proc in process_iter(): +                if interface in proc.cmdline(): +                    running = True + +        self.assertFalse(running) + +      def test_pppoe_dhcpv6pd(self):          # Check if PPPoE dialer can be configured with DHCPv6-PD          address = '1' | 
