Process config contents with cdrouter-cli -print-networks-json.

        :param contents: Config contents as string.
        :return: :class:`configs.Networks <configs.Networks>` object
        :rtype: configs.Networks

def get_networks(self, contents):
        """Process config contents with cdrouter-cli -print-networks-json.

        :param contents: Config contents as string.
        :return: :class:`configs.Networks <configs.Networks>` object
        :rtype: configs.Networks
        """
        schema = NetworksSchema()
        resp = self.service.post(self.base,
                                 params={'process': 'networks'}, json={'contents': contents})
        return self.service.decode(schema, resp)