Skip to content

Commit

Permalink
topotato: use has_defun in pim6 tests
Browse files Browse the repository at this point in the history
`debug mld` doesn't exist in early versions of pim6d.

Signed-off-by: David Lamparter <[email protected]>
  • Loading branch information
eqvinox committed Sep 6, 2024
1 parent 8a73dd5 commit 0510e35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_mld_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class FRRConfigured(RouterFRR):
pim6d = """
#% extends "boilerplate.conf"
#% block main
#% if frr.has_defun("debug_mld_cmd")
debug mld
#% endif
#% if router.name in ['dut']
#% for iface in router.ifaces
interface {{ iface.ifname }}
Expand Down
2 changes: 2 additions & 0 deletions test_pim6_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class Configs(FRRConfigs):
pim6d = """
#% extends "boilerplate.conf"
#% block main
#% if frr.has_defun("debug_mld_cmd")
debug mld
#% endif
debug pimv6 trace
#% if router.name in ['r1', 'r2']
interface lo
Expand Down
2 changes: 2 additions & 0 deletions test_pim6_prune_propagate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class Configs(FRRConfigs):
pim6d = """
#% extends "boilerplate.conf"
#% block main
#% if frr.has_defun("debug_mld_cmd")
debug mld
#% endif
debug pimv6 trace
debug pimv6 packets joins
#% for iface in router.ifaces
Expand Down

0 comments on commit 0510e35

Please sign in to comment.