func (r *ProtocolLXD) RenameNetwork(name string, network api.NetworkPost) error {
	if !r.HasExtension("network") {
		return fmt.Errorf("The server is missing the required \"network\" API extension")
	}

	// Send the request
	_, _, err := r.query("POST", fmt.Sprintf("/networks/%s", url.QueryEscape(name)), network, "")
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) RenameNetwork(name string, network api.NetworkPost) error {
	if !r.HasExtension("network") {
		return fmt.Errorf("The server is missing the required \"network\" API extension")
	}

	
	_, _, err := r.query("POST", fmt.Sprintf("/networks/%s", url.QueryEscape(name)), network, "")
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) RenameNetwork ( name string , network api . NetworkPost ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } // Send the request _ , _ , err := r . query ( " " , fmt . Sprintf ( " " , url . QueryEscape ( name ) ) , network , " " ) if err != nil { return err } return nil }
// RenameNetwork renames an existing network entry
RenameNetwork renames an existing network entry