mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-06 14:03:58 +00:00
BREAKING CHANGE: introduces sdn support. Signed-off-by: MacherelR <64424331+MacherelR@users.noreply.github.com>
18 lines
381 B
Go
18 lines
381 B
Go
package subnets
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/bpg/terraform-provider-proxmox/proxmox/api"
|
|
)
|
|
|
|
// Client is a client for accessing the Proxmox SDN VNETs API.
|
|
type Client struct {
|
|
api.Client
|
|
}
|
|
|
|
// ExpandPath returns the API path for SDN VNETS.
|
|
func (c *Client) ExpandPath(vnet_id string, path string) string {
|
|
return fmt.Sprintf("cluster/sdn/vnets/%s/subnets/%s", vnet_id, path)
|
|
}
|