OSPF 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.OSPF("main", {
ospfId: "main-fabric",
ipPrefix: "10.0.0.0/16",
area: "0",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
main = proxmoxve.sdnfabric.OSPF("main",
ospf_id="main-fabric",
ip_prefix="10.0.0.0/16",
area="0")
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.NewOSPF(ctx, "main", &sdnfabric.OSPFArgs{
OspfId: pulumi.String("main-fabric"),
IpPrefix: pulumi.String("10.0.0.0/16"),
Area: pulumi.String("0"),
})
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.OSPF("main", new()
{
OspfId = "main-fabric",
IpPrefix = "10.0.0.0/16",
Area = "0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.SDNFabric.OSPF;
import io.muehlbachler.pulumi.proxmoxve.SDNFabric.OSPFArgs;
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 OSPF("main", OSPFArgs.builder()
.ospfId("main-fabric")
.ipPrefix("10.0.0.0/16")
.area("0")
.build());
}
}
resources:
main:
type: proxmoxve:SDNFabric:OSPF
properties:
ospfId: main-fabric
ipPrefix: 10.0.0.0/16
area: '0'
Create OSPF Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OSPF(name: string, args: OSPFArgs, opts?: CustomResourceOptions);@overload
def OSPF(resource_name: str,
args: OSPFArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OSPF(resource_name: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
ip_prefix: Optional[str] = None,
ospf_id: Optional[str] = None)func NewOSPF(ctx *Context, name string, args OSPFArgs, opts ...ResourceOption) (*OSPF, error)public OSPF(string name, OSPFArgs args, CustomResourceOptions? opts = null)type: proxmoxve:SDNFabric:OSPF
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 OSPFArgs
- 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 OSPFArgs
- 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 OSPFArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OSPFArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OSPFArgs
- 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 ospfResource = new ProxmoxVE.SDNFabric.OSPF("ospfResource", new()
{
Area = "string",
IpPrefix = "string",
OspfId = "string",
});
example, err := sdnfabric.NewOSPF(ctx, "ospfResource", &sdnfabric.OSPFArgs{
Area: pulumi.String("string"),
IpPrefix: pulumi.String("string"),
OspfId: pulumi.String("string"),
})
var ospfResource = new OSPF("ospfResource", OSPFArgs.builder()
.area("string")
.ipPrefix("string")
.ospfId("string")
.build());
ospf_resource = proxmoxve.sdnfabric.OSPF("ospfResource",
area="string",
ip_prefix="string",
ospf_id="string")
const ospfResource = new proxmoxve.sdnfabric.OSPF("ospfResource", {
area: "string",
ipPrefix: "string",
ospfId: "string",
});
type: proxmoxve:SDNFabric:OSPF
properties:
area: string
ipPrefix: string
ospfId: string
OSPF 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 OSPF resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the OSPF 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 OSPF Resource
Get an existing OSPF 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?: OSPFState, opts?: CustomResourceOptions): OSPF@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
ip_prefix: Optional[str] = None,
ospf_id: Optional[str] = None) -> OSPFfunc GetOSPF(ctx *Context, name string, id IDInput, state *OSPFState, opts ...ResourceOption) (*OSPF, error)public static OSPF Get(string name, Input<string> id, OSPFState? state, CustomResourceOptions? opts = null)public static OSPF get(String name, Output<String> id, OSPFState state, CustomResourceOptions options)resources: _: type: proxmoxve:SDNFabric:OSPF 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.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
