1# test ospfd without any interface state machines 2# the ospfd will get dr and there must be no neighbors 3 4use strict; 5use warnings; 6use Default qw($ospfd_ip); 7 8our %tst_args = ( 9 client => { 10 state => [], 11 tasks => [ 12 { 13 name => "receive hello with dr 0.0.0.0 bdr 0.0.0.0", 14 check => { 15 dr => "0.0.0.0", 16 bdr => "0.0.0.0", 17 nbrs => [], 18 }, 19 }, 20 { 21 name => "there must be no nbrs, wait until dr $ospfd_ip", 22 check => { 23 bdr => "0.0.0.0", 24 nbrs => [], 25 }, 26 wait => { 27 dr => $ospfd_ip, 28 }, 29 timeout => 11, # dead interval + hello interval + 1 second 30 }, 31 ], 32 }, 33); 34 351; 36