def _rpc(self, get, child=None, **kwargs):
rpc = etree.fromstring(get)<EOL>if child:<EOL><INDENT>rpc.append(etree.fromstring(child))<EOL><DEDENT>response = self.device.execute(rpc)<EOL>return etree.tostring(response)<EOL>
This allows you to construct an arbitrary RPC call to retreive common stuff. For example:
Configuration:  get: "<get-configuration/>"
Interface information:  get: "<get-interface-information/>"
A particular interfacece information:
      get: "<get-interface-information/>"
      child: "<interface-name>ge-0/0/0</interface-name>"