Thank you,
I, found the calls to .add_interface in of the TopologyMap,
However, on looking further, I tried to figure out how the map is created, especially how the interfaces are added into the TopologyMap,
I observed [connect -> Interface(initializer) -> VethEnd(initializer) -> Device(initializer) -> (if node_id is not None)add_interface]
However, in my case "node_id is set to None"
I, tried checking the number of orphan_interfaces created after function call 'connect' in a test program(attached below).
It outputs as 2 (attached below).
However, I didn't find any possible function call, to add_interface which sets orphan_interface to 2
If, you can help in the how its is initialised to 2,?That would really help.
Thank you
Abhinaba