Demo entry 6639935

rpc

   

Submitted by anonymous on Sep 11, 2017 at 07:02
Language: Python. Code size: 491 Bytes.

    def attach_interface(self, context, server, net_id, port_id):
        cctxt = self.client.prepare(topic=self.topic, server=CONF.host)
        cctxt.call(context, 'attach_interface',
                   server=server, net_id=net_id, port_id=port_id)

    def detach_interface(self, context, server, port_id):
        cctxt = self.client.prepare(topic=self.topic, server=CONF.host)
        cctxt.call(context, 'detach_interface', server=server,
                   port_id=port_id)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).