START	usr.sbin/ospf6d	2025-03-22T03:18:41Z

==== network_statement ====
ksh /usr/src/regress/usr.sbin/ospf6d/network_statement.sh /usr/sbin/ospf6d /usr/src/regress/usr.sbin/ospf6d /usr/src/regress/usr.sbin/ospf6d/obj  11 12 pair11 pair12
check if rdomains are busy
check if interfaces are busy
+ echo setup
setup
+ ifconfig pair11 inet6 rdomain 11 2001:db8::11/64 up
+ ifconfig pair12 inet6 rdomain 12 2001:db8::12/64 up
+ ifconfig pair11 patch pair12
+ ifconfig lo11 inet6 2001:db8:aaaa::11/128
+ ifconfig lo12 inet6 2001:db8:aaaa::12/128
+ ifconfig vether11 inet6 rdomain 11 2001:db8:11::/64 up
+ ifconfig vether12 inet6 rdomain 12 2001:db8:12::/64 up
+ ifconfig vether12 inet6 rdomain 12 2001:db8:12:12::/64 up
+ sed s/{RDOMAIN1}/11/g;s/{PAIR1}/pair11/g /usr/src/regress/usr.sbin/ospf6d/ospf6d.network_statement.rdomain1.conf
+ > /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.1.conf 
+ chmod 0600 /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.1.conf
+ sed s/{RDOMAIN2}/12/g;s/{PAIR2}/pair12/g /usr/src/regress/usr.sbin/ospf6d/ospf6d.network_statement.rdomain2.conf
+ > /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.2.conf 
+ chmod 0600 /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.2.conf
+ echo add routes
add routes
+ route -T 12 add -inet6 default 2001:db8:12::1
add net default: gateway 2001:db8:12::1
+ route -T 12 add 2001:db8:ffff::/126 2001:db8:12::2
add net 2001:db8:ffff::/126: gateway 2001:db8:12::2
+ route -T 12 add 2001:db8:fffe::/64 2001:db8:12::3 -label toOSPF
add net 2001:db8:fffe::/64: gateway 2001:db8:12::3
+ echo start ospf6d
start ospf6d
+ route -T 11 exec /usr/sbin/ospf6d -v -f /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.1.conf
interface with index 6 not found
if_newaddr: ifindex 6, addr fe80::1/64, dest ::
interface with index 1 not found
interface with index 2 not found
if_newaddr: ifindex 2, addr fe80::d250:99ff:fef9:d70c/64
interface with index 3 not found
interface with index 4 not found
interface with index 5 not found
interface with index 7 not found
interface with index 564 not found
if_newaddr: ifindex 564, addr fe80::fce1:baff:feda:e9d2/64
if_newaddr: ifindex 564, addr 2001:db8::11/64
interface with index 565 not found
if_newaddr: ifindex 565, addr fe80::1/64, dest ::
if_newaddr: ifindex 565, addr 2001:db8:aaaa::11/128, dest ::
interface with index 566 not found
if_newaddr: ifindex 566, addr fe80::fce1:baff:fedb:3c59/64
if_newaddr: ifindex 566, addr 2001:db8::12/64
interface with index 567 not found
if_newaddr: ifindex 567, addr fe80::1/64, dest ::
if_newaddr: ifindex 567, addr 2001:db8:aaaa::12/128, dest ::
interface with index 568 not found
if_newaddr: ifindex 568, addr fe80::fce1:baff:fedc:9058/64
if_newaddr: ifindex 568, addr 2001:db8:11::/64
interface with index 569 not found
if_newaddr: ifindex 569, addr fe80::fce1:baff:fedd:dc37/64
if_newaddr: ifindex 569, addr 2001:db8:12::/64
if_newaddr: ifindex 569, addr 2001:db8:12:12::/64
+ route -T 12 exec /usr/sbin/ospf6d -v -f /usr/src/regress/usr.sbin/ospf6d/obj/ospf6d.2.conf
interface with index 6 not found
if_newaddr: ifindex 6, addr fe80::1/64, dest ::
interface with index 1 not found
interface with index 2 not found
if_newaddr: ifindex 2, addr fe80::d250:99ff:fef9:d70c/64
interface with index 3 not found
interface with index 4 not found
interface with index 5 not found
interface with index 7 not found
interface with index 564 not found
if_newaddr: ifindex 564, addr fe80::fce1:baff:feda:e9d2/64
if_newaddr: ifindex 564, addr 2001:db8::11/64
interface with index 565 not found
if_newaddr: ifindex 565, addr fe80::1/64, dest ::
if_newaddr: ifindex 565, addr 2001:db8:aaaa::11/128, dest ::
interface with index 566 not found
if_newaddr: ifindex 566, addr fe80::fce1:baff:fedb:3c59/64
if_newaddr: ifindex 566, addr 2001:db8::12/64
interface with index 567 not found
if_newaddr: ifindex 567, addr fe80::1/64, dest ::
if_newaddr: ifindex 567, addr 2001:db8:aaaa::12/128, dest ::
interface with index 568 not found
if_newaddr: ifindex 568, addr fe80::fce1:baff:fedc:9058/64
if_newaddr: ifindex 568, addr 2001:db8:11::/64
interface with index 569 not found
if_newaddr: ifindex 569, addr fe80::fce1:baff:fedd:dc37/64
if_newaddr: ifindex 569, addr 2001:db8:12::/64
if_newaddr: ifindex 569, addr 2001:db8:12:12::/64
+ sleep 55
+ echo tests
tests
+ route -T 11 exec ospf6ctl sh fib
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Prio Destination          Nexthop          
*O       62 ::/0                 fe80::fce1:baff:fedb:3c59%pair11
*C        0 ::1/128              link#0
*         1 ::1/128              ::1
*C        4 2001:db8::/64        2001:db8::11
*C        4 2001:db8:11::/64     2001:db8:11::
*O       62 2001:db8:12::/64     fe80::fce1:baff:fedb:3c59%pair11
*O       62 2001:db8:12:12::/64  fe80::fce1:baff:fedb:3c59%pair11
*         1 2001:db8:aaaa::11/128 2001:db8:aaaa::11
*O       62 2001:db8:aaaa::12/128 fe80::fce1:baff:fedb:3c59%pair11
*O       62 2001:db8:fffe::/64   fe80::fce1:baff:fedb:3c59%pair11
*O       62 2001:db8:ffff::/126  fe80::fce1:baff:fedb:3c59%pair11
*C        4 fe80::%pair11/64     fe80::fce1:baff:feda:e9d2%pair11
*         1 fe80::1%lo11/128     fe80::1%lo11
*C        4 fe80::%vether11/64   fe80::fce1:baff:fedc:9058%vether11
*         4 ff01::%pair11/32     fe80::fce1:baff:feda:e9d2%pair11
*         4 ff01::%lo11/32       fe80::1%lo11
*         4 ff01::%vether11/32   fe80::fce1:baff:fedc:9058%vether11
*         4 ff02::%pair11/32     fe80::fce1:baff:feda:e9d2%pair11
*         4 ff02::%lo11/32       fe80::1%lo11
*         4 ff02::%vether11/32   fe80::fce1:baff:fedc:9058%vether11

+ route -T 11 exec ospf6ctl sh rib
Destination          Nexthop           Path Type    Type      Cost    Uptime  
::2.2.2.2            fe80::fce1:baff:fedb:3c59%pair11  Inter-Area   Router    10      00:00:08
2001:db8::/64        ::              C Intra-Area   Network   10      00:00:14
2001:db8:12::/64     fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   65545   00:00:08
2001:db8:12:12::/64  fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   65545   00:00:08
2001:db8:aaaa::12/128 fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   10      00:00:08
::/0                 fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08
2001:db8:fffe::/64   fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08
2001:db8:ffff::/126  fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08

+ route -T 11 exec ospf6ctl sh rib
+ grep 2001:db8:aaaa::12/128
2001:db8:aaaa::12/128 fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   10      00:00:08
+ route -T 11 exec ospf6ctl sh rib
+ grep 2001:db8:12::/64
2001:db8:12::/64     fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   65545   00:00:08
+ route -T 11 exec ospf6ctl sh rib
+ grep 2001:db8:12:12::/64
2001:db8:12:12::/64  fe80::fce1:baff:fedb:3c59%pair11  Intra-Area   Network   65545   00:00:08
+ route -T 11 exec ospf6ctl sh rib
+ grep 2001:db8:ffff::/126
2001:db8:ffff::/126  fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08
+ route -T 11 exec ospf6ctl sh rib
+ grep ::/0
::/0                 fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08
+ route -T 11 exec ospf6ctl sh rib
+ grep 2001:db8:fffe::/64
2001:db8:fffe::/64   fe80::fce1:baff:fedb:3c59%pair11  Type 1 ext   Network   110     00:00:08
+ exit 0
+ error_notify 0
cleanup
SUCCESS

PASS	usr.sbin/ospf6d	Duration 0m56.75s