Use the following APIs to build or rebuild your network topology when the network changes:

Build L2 topology

Build L3 topology

Get the running status of a topology building task