def setup_rpc(self):
endpoints = RpcCallBacks(self._vdpm, self._iptd)<EOL>self.server = rpc.DfaRpcServer(self._qn, self._my_host, self._url,<EOL>endpoints,<EOL>exchange=constants.DFA_EXCHANGE)<EOL>
Setup RPC server for dfa agent.