lib/pkgcloud/openstack/compute/client/extensions/networks-base.js
function (network, callback) {
      var networkId = (typeof network === 'object') ? network.id : network;

      return this._request({
        path: urlJoin(this._extension, 'add'),
        method: 'POST',
        body: {
          id: networkId
        }
      }, function (err) {
        return callback(err);
      });
    }
function (network, callback) {
      var networkId = (typeof network === 'object') ? network.id : network;

      return this._request({
        path: urlJoin(this._extension, 'add'),
        method: 'POST',
        body: {
          id: networkId
        }
      }, function (err) {
        return callback(err);
      });
    }
function ( network , callback ) { var networkId = ( typeof network === 'object' ) ? network . id : network ; return this . _request ( { path : urlJoin ( this . _extension , 'add' ) , method : 'POST' , body : { id : networkId } } , function ( err ) { return callback ( err ) ; } ) ; }
client.addNetwork

@description Add an existing network to a project

@param {String|object}   network   The network or networkId to add
@param {Function}        callback
client . addNetwork