STORDIS / orca_nw_lib

gNMI python package for SONiC switch discovery and management.
Apache License 2.0
2 stars 3 forks source link

Implement realtime update in NW topology in ORCA DB. #20

Closed kamalkrbh closed 11 months ago

kamalkrbh commented 1 year ago

Any config changes made on following entities (initially) should automatically reflect in ORCA DB:

We can explore 'GNMi Subscribe' to listen changes happening on those entities .

kamalkrbh commented 1 year ago

Interface config update implemented and pushed.

kamalkrbh commented 1 year ago

MCALG domain updates implemented, mclag mem path is not subscribable. PortChannel path is also subscribable. LLDP path is subscribable but produces no notifications.

kamalkrbh commented 11 months ago

gNMI subscriptions are not supported on all the paths. only interface paths are supported to receive subscription events. Currently pull based mechanism has been implemented to keep database in sync with network.

To keep DB up to date a network component discovery on the specific device is triggered every time a write operation is performed, In this way the same logic used for discovering the network can be used for updating DB during later write operations.

Currently, For the handling of adding or removing devices a discovery of network has to be called by the application making use of the orca_nw_lib.