summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/ospfd/args-none.pl
blob: bebb3935e319b8ffd7effd49a8fdf0864c7a179c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# test ospfd without any interface state machines
# the ospfd will get dr and there must be no neighbors

use strict;
use warnings;
use Default qw($ospfd_ip);

our %tst_args = (
    client => {
	state => [],
	tasks => [
	    {
		name => "receive hello with dr 0.0.0.0 bdr 0.0.0.0",
		check => {
		    dr  => "0.0.0.0",
		    bdr => "0.0.0.0",
		    nbrs => [],
		},
	    },
	    {
		name => "there must be no nbrs, wait until dr $ospfd_ip",
		check => {
		    bdr => "0.0.0.0",
		    nbrs => [],
		},
		wait => {
		    dr => $ospfd_ip,
		},
		timeout => 11,  # dead interval + hello interval + 1 second
	    },
	],
    },
);

1;