OpenFabric Fabric Node 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",
});
const mainOpenfabric = new proxmoxve.sdn.fabric.node.Openfabric("main", {
fabricId: main.fabricId,
nodeId: "pve",
ip: "10.0.0.1",
interfaceNames: [
"nic0",
"nic1",
],
});
import pulumi
import pulumi_proxmoxve as proxmoxve
main = proxmoxve.sdnfabric.OpenFabric("main",
fabric_id="main-fabric",
ip_prefix="10.0.0.0/16")
main_openfabric = proxmoxve.sdn.fabric.node.Openfabric("main",
fabric_id=main.fabric_id,
node_id="pve",
ip="10.0.0.1",
interface_names=[
"nic0",
"nic1",
])
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/sdn"
"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 {
main, 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
}
_, err = sdn.NewOpenfabric(ctx, "main", &sdn.OpenfabricArgs{
FabricId: main.FabricId,
NodeId: pulumi.String("pve"),
Ip: pulumi.String("10.0.0.1"),
InterfaceNames: pulumi.StringArray{
pulumi.String("nic0"),
pulumi.String("nic1"),
},
})
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",
});
var mainOpenfabric = new ProxmoxVE.Sdn.Fabric.Node.Openfabric("main", new()
{
FabricId = main.FabricId,
NodeId = "pve",
Ip = "10.0.0.1",
InterfaceNames = new[]
{
"nic0",
"nic1",
},
});
});
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 io.muehlbachler.pulumi.proxmoxve.Sdn.Openfabric;
import io.muehlbachler.pulumi.proxmoxve.Sdn.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());
var mainOpenfabric = new Openfabric("mainOpenfabric", OpenfabricArgs.builder()
.fabricId(main.fabricId())
.nodeId("pve")
.ip("10.0.0.1")
.interfaceNames(
"nic0",
"nic1")
.build());
}
}
resources:
main:
type: proxmoxve:SDNFabric:OpenFabric
properties:
fabricId: main-fabric
ipPrefix: 10.0.0.0/16
mainOpenfabric:
type: proxmoxve:Sdn/fabric/node:Openfabric
name: main
properties:
fabricId: ${main.fabricId}
nodeId: pve
ip: 10.0.0.1
interfaceNames:
- nic0
- nic1
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,
interface_names: Optional[Sequence[str]] = None,
node_id: Optional[str] = None,
ip: Optional[str] = None,
ip6: 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:Sdn/fabric/node/openfabric: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.
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.
- Interface
Names List<string> - Set of interfaces associated with the fabric node.
- Node
Id string - The unique identifier of the SDN fabric.
- Ip string
- IPv4 address for the fabric node.
- Ip6 string
- IPv6 address for the fabric node.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Interface
Names []string - Set of interfaces associated with the fabric node.
- Node
Id string - The unique identifier of the SDN fabric.
- Ip string
- IPv4 address for the fabric node.
- Ip6 string
- IPv6 address for the fabric node.
- fabric
Id String - The unique identifier of the SDN fabric.
- interface
Names List<String> - Set of interfaces associated with the fabric node.
- node
Id String - The unique identifier of the SDN fabric.
- ip String
- IPv4 address for the fabric node.
- ip6 String
- IPv6 address for the fabric node.
- fabric
Id string - The unique identifier of the SDN fabric.
- interface
Names string[] - Set of interfaces associated with the fabric node.
- node
Id string - The unique identifier of the SDN fabric.
- ip string
- IPv4 address for the fabric node.
- ip6 string
- IPv6 address for the fabric node.
- fabric_
id str - The unique identifier of the SDN fabric.
- interface_
names Sequence[str] - Set of interfaces associated with the fabric node.
- node_
id str - The unique identifier of the SDN fabric.
- ip str
- IPv4 address for the fabric node.
- ip6 str
- IPv6 address for the fabric node.
- fabric
Id String - The unique identifier of the SDN fabric.
- interface
Names List<String> - Set of interfaces associated with the fabric node.
- node
Id String - The unique identifier of the SDN fabric.
- ip String
- IPv4 address for the fabric node.
- ip6 String
- IPv6 address for the fabric node.
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,
fabric_id: Optional[str] = None,
interface_names: Optional[Sequence[str]] = None,
ip: Optional[str] = None,
ip6: Optional[str] = None,
node_id: 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:Sdn/fabric/node/openfabric: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.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Interface
Names List<string> - Set of interfaces associated with the fabric node.
- Ip string
- IPv4 address for the fabric node.
- Ip6 string
- IPv6 address for the fabric node.
- Node
Id string - The unique identifier of the SDN fabric.
- Fabric
Id string - The unique identifier of the SDN fabric.
- Interface
Names []string - Set of interfaces associated with the fabric node.
- Ip string
- IPv4 address for the fabric node.
- Ip6 string
- IPv6 address for the fabric node.
- Node
Id string - The unique identifier of the SDN fabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- interface
Names List<String> - Set of interfaces associated with the fabric node.
- ip String
- IPv4 address for the fabric node.
- ip6 String
- IPv6 address for the fabric node.
- node
Id String - The unique identifier of the SDN fabric.
- fabric
Id string - The unique identifier of the SDN fabric.
- interface
Names string[] - Set of interfaces associated with the fabric node.
- ip string
- IPv4 address for the fabric node.
- ip6 string
- IPv6 address for the fabric node.
- node
Id string - The unique identifier of the SDN fabric.
- fabric_
id str - The unique identifier of the SDN fabric.
- interface_
names Sequence[str] - Set of interfaces associated with the fabric node.
- ip str
- IPv4 address for the fabric node.
- ip6 str
- IPv6 address for the fabric node.
- node_
id str - The unique identifier of the SDN fabric.
- fabric
Id String - The unique identifier of the SDN fabric.
- interface
Names List<String> - Set of interfaces associated with the fabric node.
- ip String
- IPv4 address for the fabric node.
- ip6 String
- IPv6 address for the fabric node.
- node
Id String - The unique identifier of the SDN fabric.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
