@startuml

:ZB_BDB_SIGNAL_FORMATION;

if (status == RET_OK) then (no)
    :bdb_start_top_level_commissioning(ZB_BDB_NETWORK_FORMATION);
else (yes)
    :bdb_start_top_level_commissioning(ZB_BDB_NETWORK_STEERING);
endif

stop

@enduml