summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/ospfd/args-ddstate.pl
blob: 72ed496fdf29f9634f6fbadcda8f75f871d13265 (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
36
37
38
39
40
41
42
43
44
use strict;
use warnings;
use Default qw($ospfd_ip $ospfd_rtrid);

our %tst_args = (
    client => {
	tasks => [
	    {
		name => "receive hello with dr 0.0.0.0 bdr 0.0.0.0, ".
		    "enter $ospfd_rtrid as our neighbor",
		check => {
		    dr  => "0.0.0.0",
		    bdr => "0.0.0.0",
		    nbrs => [],
		},
		state => {
		    nbrs => [ $ospfd_rtrid ],
		},
	    },
	    {
		name => "neighbor asserting itself as master. " .
		    "We proclaim to be master, because of higher router id.",
		wait => {
		    dd_bits => 7, # I|M|MS
		},
		state => {
		    dd_bits => 7,
		},
		timeout => 10, # not specified in rfc
	    },
	    {
		name => "check if neighbor is slave, initialization is done ".
		    "and neighbour has applied our dd sequence number.",
		wait => {
		    dd_bits => 0x2, # M
		    dd_seq => 999,
		},
		timeout => 10, # not specified in rfc
	    },
	],
    },
);

1;