Proxy MD-SAL interfaces in DOMMountPointServiceImpl
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcIdentifier.java
index 60fae6781e5bfa971d0a6eefdac6aff3f97e3934..63e646debd7a884699c73ff4fb881d851ec8892e 100644 (file)
@@ -79,6 +79,14 @@ public abstract class DOMRpcIdentifier {
         return new Local(type, contextReference);
     }
 
+    public static DOMRpcIdentifier fromMdsal(final org.opendaylight.mdsal.dom.api.DOMRpcIdentifier mdsal) {
+        return create(mdsal.getType(), mdsal.getContextReference());
+    }
+
+    public org.opendaylight.mdsal.dom.api.DOMRpcIdentifier toMdsal() {
+        return org.opendaylight.mdsal.dom.api.DOMRpcIdentifier.create(type, getContextReference());
+    }
+
     /**
      * Return the RPC type.
      *