OpenFabric Fabric in Proxmox SDN. Fabrics in Proxmox VE SDN provide automated routing between nodes in a cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const main = new proxmoxve.sdnfabric.OpenFabric("main", {
fabricId: "main-fabric",
ipPrefix: "10.0.0.0/16",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
main = proxmoxve.sdnfabric.OpenFabric("main",
fabric_id="main-fabric",
ip_prefix="10.0.0.0/16")
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/sdnfabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdnfabric.NewOpenFabric(ctx, "main", &sdnfabric.OpenFabricArgs{
FabricId: pulumi.String("main-fabric"),
IpPrefix: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var main = new ProxmoxVE.SDNFabric.OpenFabric("main", new()
{
FabricId = "main-fabric",
IpPrefix = "10.0.0.0/16",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.SDNFabric.OpenFabric;
import io.muehlbachler.pulumi.proxmoxve.SDNFabric.OpenFabricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new OpenFabric("main", OpenFabricArgs.builder()
.fabricId("main-fabric")
.ipPrefix("10.0.0.0/16")
.build());
}
}
resources:
main:
type: proxmoxve:SDNFabric:OpenFabric
properties:
fabricId: main-fabric
ipPrefix: 10.0.0.0/16
Create OpenFabric Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpenFabric(name: string, args: OpenFabricArgs, opts?: CustomResourceOptions);@overload
def OpenFabric(resource_name: str,
args: OpenFabricArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OpenFabric(resource_name: str,
opts: Optional[ResourceOptions] = None,
fabric_id: Optional[str] = None,
csnp_interval: Optional[int] = None,
hello_interval: Optional[int] = None,
ip6_prefix: Optional[str] = None,
ip_prefix: Optional[str] = None)func NewOpenFabric(ctx *Context, name string, args OpenFabricArgs, opts ...ResourceOption) (*OpenFabric, error)public OpenFabric(string name, OpenFabricArgs args, CustomResourceOptions? opts = null)
public OpenFabric(String name, OpenFabricArgs args)
public OpenFabric(String name, OpenFabricArgs args, CustomResourceOptions options)
type: proxmoxve:SDNFabric:OpenFabric
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OpenFabricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OpenFabricArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OpenFabricArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpenFabricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpenFabricArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var openFabricResource = new ProxmoxVE.SDNFabric.OpenFabric("openFabricResource", new()
{
FabricId = "string",
CsnpInterval = 0,
HelloInterval = 0,
Ip6Prefix = "string",
IpPrefix = "string",
});
example, err := sdnfabric.NewOpenFabric(ctx, "openFabricResource", &sdnfabric.OpenFabricArgs{
FabricId: pulumi.String("string"),
CsnpInterval: pulumi.Int(0),
HelloInterval: pulumi.Int(0),
Ip6Prefix: pulumi.String("string"),
IpPrefix: pulumi.String("string"),
})
var openFabricResource = new OpenFabric("openFabricResource", OpenFabricArgs.builder()
.fabricId("string")
.csnpInterval(0)
.helloInterval(0)
.ip6Prefix("string")
.ipPrefix("string")
.build());
open_fabric_resource = proxmoxve.sdnfabric.OpenFabric("openFabricResource",
fabric_id="string",
csnp_interval=0,
hello_interval=0,
ip6_prefix="string",
ip_prefix="string")
const openFabricResource = new proxmoxve.sdnfabric.OpenFabric("openFabricResource", {
fabricId: "string",
csnpInterval: 0,
helloInterval: 0,
ip6Prefix: "string",
ipPrefix: "string",
});
type: proxmoxve:SDNFabric:OpenFabric
properties:
csnpInterval: 0
fabricId: string
helloInterval: 0
ip6Prefix: string
ipPrefix: string
OpenFabric Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OpenFabric resource accepts the following input properties:
- Fabric
Id string - The unique identifier of the SDN fabric.
- Csnp
Interval int - The csnp_interval property for OpenFabric.
- Hello
Interval int - The hello_interval property for OpenFabric.
- Ip6Prefix string
- IPv6 prefix cidr for the fabric.
- Ip
Prefix string - IPv4 prefix cidr for the fabric.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Csnp
Interval int - The csnp_interval property for OpenFabric.
- Hello
Interval int - The hello_interval property for OpenFabric.
- Ip6Prefix string
- IPv6 prefix cidr for the fabric.
- Ip
Prefix string - IPv4 prefix cidr for the fabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- csnp
Interval Integer - The csnp_interval property for OpenFabric.
- hello
Interval Integer - The hello_interval property for OpenFabric.
- ip6Prefix String
- IPv6 prefix cidr for the fabric.
- ip
Prefix String - IPv4 prefix cidr for the fabric.
- fabric
Id string - The unique identifier of the SDN fabric.
- csnp
Interval number - The csnp_interval property for OpenFabric.
- hello
Interval number - The hello_interval property for OpenFabric.
- ip6Prefix string
- IPv6 prefix cidr for the fabric.
- ip
Prefix string - IPv4 prefix cidr for the fabric.
- fabric_
id str - The unique identifier of the SDN fabric.
- csnp_
interval int - The csnp_interval property for OpenFabric.
- hello_
interval int - The hello_interval property for OpenFabric.
- ip6_
prefix str - IPv6 prefix cidr for the fabric.
- ip_
prefix str - IPv4 prefix cidr for the fabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- csnp
Interval Number - The csnp_interval property for OpenFabric.
- hello
Interval Number - The hello_interval property for OpenFabric.
- ip6Prefix String
- IPv6 prefix cidr for the fabric.
- ip
Prefix String - IPv4 prefix cidr for the fabric.
Outputs
All input properties are implicitly available as output properties. Additionally, the OpenFabric resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OpenFabric Resource
Get an existing OpenFabric resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OpenFabricState, opts?: CustomResourceOptions): OpenFabric@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
csnp_interval: Optional[int] = None,
fabric_id: Optional[str] = None,
hello_interval: Optional[int] = None,
ip6_prefix: Optional[str] = None,
ip_prefix: Optional[str] = None) -> OpenFabricfunc GetOpenFabric(ctx *Context, name string, id IDInput, state *OpenFabricState, opts ...ResourceOption) (*OpenFabric, error)public static OpenFabric Get(string name, Input<string> id, OpenFabricState? state, CustomResourceOptions? opts = null)public static OpenFabric get(String name, Output<String> id, OpenFabricState state, CustomResourceOptions options)resources: _: type: proxmoxve:SDNFabric:OpenFabric get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Csnp
Interval int - The csnp_interval property for OpenFabric.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Hello
Interval int - The hello_interval property for OpenFabric.
- Ip6Prefix string
- IPv6 prefix cidr for the fabric.
- Ip
Prefix string - IPv4 prefix cidr for the fabric.
- Csnp
Interval int - The csnp_interval property for OpenFabric.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Hello
Interval int - The hello_interval property for OpenFabric.
- Ip6Prefix string
- IPv6 prefix cidr for the fabric.
- Ip
Prefix string - IPv4 prefix cidr for the fabric.
- csnp
Interval Integer - The csnp_interval property for OpenFabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- hello
Interval Integer - The hello_interval property for OpenFabric.
- ip6Prefix String
- IPv6 prefix cidr for the fabric.
- ip
Prefix String - IPv4 prefix cidr for the fabric.
- csnp
Interval number - The csnp_interval property for OpenFabric.
- fabric
Id string - The unique identifier of the SDN fabric.
- hello
Interval number - The hello_interval property for OpenFabric.
- ip6Prefix string
- IPv6 prefix cidr for the fabric.
- ip
Prefix string - IPv4 prefix cidr for the fabric.
- csnp_
interval int - The csnp_interval property for OpenFabric.
- fabric_
id str - The unique identifier of the SDN fabric.
- hello_
interval int - The hello_interval property for OpenFabric.
- ip6_
prefix str - IPv6 prefix cidr for the fabric.
- ip_
prefix str - IPv4 prefix cidr for the fabric.
- csnp
Interval Number - The csnp_interval property for OpenFabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- hello
Interval Number - The hello_interval property for OpenFabric.
- ip6Prefix String
- IPv6 prefix cidr for the fabric.
- ip
Prefix String - IPv4 prefix cidr for the fabric.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
