Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Legacy VLAN configuration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getNetworkSwitchVlan({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_network_switch_vlan(id="testing")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/openwrt/openwrt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := openwrt.LookupNetworkSwitchVlan(ctx, &openwrt.LookupNetworkSwitchVlanArgs{
Id: "testing",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Openwrt = Pulumi.Openwrt;
return await Deployment.RunAsync(() =>
{
var testing = Openwrt.GetNetworkSwitchVlan.Invoke(new()
{
Id = "testing",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openwrt.OpenwrtFunctions;
import com.pulumi.openwrt.inputs.GetNetworkSwitchVlanArgs;
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) {
final var testing = OpenwrtFunctions.getNetworkSwitchVlan(GetNetworkSwitchVlanArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getNetworkSwitchVlan
arguments:
id: testing
Using getNetworkSwitchVlan
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkSwitchVlan(args: GetNetworkSwitchVlanArgs, opts?: InvokeOptions): Promise<GetNetworkSwitchVlanResult>
function getNetworkSwitchVlanOutput(args: GetNetworkSwitchVlanOutputArgs, opts?: InvokeOptions): Output<GetNetworkSwitchVlanResult>def get_network_switch_vlan(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkSwitchVlanResult
def get_network_switch_vlan_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSwitchVlanResult]func LookupNetworkSwitchVlan(ctx *Context, args *LookupNetworkSwitchVlanArgs, opts ...InvokeOption) (*LookupNetworkSwitchVlanResult, error)
func LookupNetworkSwitchVlanOutput(ctx *Context, args *LookupNetworkSwitchVlanOutputArgs, opts ...InvokeOption) LookupNetworkSwitchVlanResultOutput> Note: This function is named LookupNetworkSwitchVlan in the Go SDK.
public static class GetNetworkSwitchVlan
{
public static Task<GetNetworkSwitchVlanResult> InvokeAsync(GetNetworkSwitchVlanArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkSwitchVlanResult> Invoke(GetNetworkSwitchVlanInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSwitchVlanResult> getNetworkSwitchVlan(GetNetworkSwitchVlanArgs args, InvokeOptions options)
public static Output<GetNetworkSwitchVlanResult> getNetworkSwitchVlan(GetNetworkSwitchVlanArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getNetworkSwitchVlan:getNetworkSwitchVlan
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
getNetworkSwitchVlan Result
The following output properties are available:
- Description string
- A human-readable description of the VLAN configuration.
- Device string
- The switch to configure.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Ports string
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - Vid double
- The VLAN tag number to use.
- Vlan double
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
- Description string
- A human-readable description of the VLAN configuration.
- Device string
- The switch to configure.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Ports string
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - Vid float64
- The VLAN tag number to use.
- Vlan float64
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
- description String
- A human-readable description of the VLAN configuration.
- device String
- The switch to configure.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- ports String
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - vid Double
- The VLAN tag number to use.
- vlan Double
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
- description string
- A human-readable description of the VLAN configuration.
- device string
- The switch to configure.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- ports string
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - vid number
- The VLAN tag number to use.
- vlan number
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
- description str
- A human-readable description of the VLAN configuration.
- device str
- The switch to configure.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- ports str
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - vid float
- The VLAN tag number to use.
- vlan float
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
- description String
- A human-readable description of the VLAN configuration.
- device String
- The switch to configure.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- ports String
- A string of space-separated port indicies that should be associated with the VLAN. Adding the suffix
"t"to a port indicates that egress packets should be tagged, for example"0 1 3t 5t". - vid Number
- The VLAN tag number to use.
- vlan Number
- The VLAN "table index" to configure. This index corresponds to the order on LuCI's UI
Package Details
- Repository
- openwrt joneshf/terraform-provider-openwrt
- License
- Notes
- This Pulumi package is based on the
openwrtTerraform Provider.
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
