Implement topology api

Implements: blueprint replication-v1

Change-Id: If35ea2507345bffb87eb7e9503f92dd43c023384