Implement topology api

Change-Id: If35ea2507345bffb87eb7e9503f92dd43c023384