Add mastership to Topology

Change-Id: Ibc2914682dac2fe124b69e40922e2d313190f168
diff --git a/src/main/java/net/onrc/onos/core/topology/BaseMastership.java b/src/main/java/net/onrc/onos/core/topology/BaseMastership.java
new file mode 100644
index 0000000..fa05e1c
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/topology/BaseMastership.java
@@ -0,0 +1,22 @@
+package net.onrc.onos.core.topology;
+
+import net.onrc.onos.core.util.Dpid;
+import net.onrc.onos.core.util.OnosInstanceId;
+
+// TODO probably "Base" prefix is not required
+/**
+ * Interface to access switch mastership information in the network view.
+ */
+public interface BaseMastership {
+
+    /**
+     * Gets the master instance ID for a switch.
+     *
+     * @param dpid switch dpid
+     * @return master instance ID or null if there is no master
+     */
+    public OnosInstanceId getSwitchMaster(Dpid dpid);
+
+// We may need something like below in the future
+//    public List<ImmutablePair<OnosInstanceId, Role>> getSwitchMasterCandidates(Dpid dpid);
+}