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 swconfig configuration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getNetworkSwitch({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_network_switch(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.LookupNetworkSwitch(ctx, &openwrt.LookupNetworkSwitchArgs{
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.GetNetworkSwitch.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.GetNetworkSwitchArgs;
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.getNetworkSwitch(GetNetworkSwitchArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getNetworkSwitch
arguments:
id: testing
Using getNetworkSwitch
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 getNetworkSwitch(args: GetNetworkSwitchArgs, opts?: InvokeOptions): Promise<GetNetworkSwitchResult>
function getNetworkSwitchOutput(args: GetNetworkSwitchOutputArgs, opts?: InvokeOptions): Output<GetNetworkSwitchResult>def get_network_switch(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkSwitchResult
def get_network_switch_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSwitchResult]func LookupNetworkSwitch(ctx *Context, args *LookupNetworkSwitchArgs, opts ...InvokeOption) (*LookupNetworkSwitchResult, error)
func LookupNetworkSwitchOutput(ctx *Context, args *LookupNetworkSwitchOutputArgs, opts ...InvokeOption) LookupNetworkSwitchResultOutput> Note: This function is named LookupNetworkSwitch in the Go SDK.
public static class GetNetworkSwitch
{
public static Task<GetNetworkSwitchResult> InvokeAsync(GetNetworkSwitchArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkSwitchResult> Invoke(GetNetworkSwitchInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSwitchResult> getNetworkSwitch(GetNetworkSwitchArgs args, InvokeOptions options)
public static Output<GetNetworkSwitchResult> getNetworkSwitch(GetNetworkSwitchArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getNetworkSwitch:getNetworkSwitch
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.
getNetworkSwitch Result
The following output properties are available:
- Enable
Mirror boolRx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - Enable
Mirror boolTx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - Enable
Vlan bool - Enables VLAN functionality.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Mirror
Monitor doublePort - Switch port to which packets are mirrored.
- Mirror
Source doublePort - Switch port from which packets are mirrored.
- Name string
- Reset bool
- Reset the switch.
- Enable
Mirror boolRx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - Enable
Mirror boolTx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - Enable
Vlan bool - Enables VLAN functionality.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Mirror
Monitor float64Port - Switch port to which packets are mirrored.
- Mirror
Source float64Port - Switch port from which packets are mirrored.
- Name string
- Reset bool
- Reset the switch.
- enable
Mirror BooleanRx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - enable
Mirror BooleanTx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - enable
Vlan Boolean - Enables VLAN functionality.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- mirror
Monitor DoublePort - Switch port to which packets are mirrored.
- mirror
Source DoublePort - Switch port from which packets are mirrored.
- name String
- reset Boolean
- Reset the switch.
- enable
Mirror booleanRx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - enable
Mirror booleanTx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - enable
Vlan boolean - Enables VLAN functionality.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- mirror
Monitor numberPort - Switch port to which packets are mirrored.
- mirror
Source numberPort - Switch port from which packets are mirrored.
- name string
- reset boolean
- Reset the switch.
- enable_
mirror_ boolrx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - enable_
mirror_ booltx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - enable_
vlan bool - Enables VLAN functionality.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- mirror_
monitor_ floatport - Switch port to which packets are mirrored.
- mirror_
source_ floatport - Switch port from which packets are mirrored.
- name str
- reset bool
- Reset the switch.
- enable
Mirror BooleanRx - Mirror received packets from the
mirror_source_portto themirror_monitor_port. - enable
Mirror BooleanTx - Mirror transmitted packets from the
mirror_source_portto themirror_monitor_port. - enable
Vlan Boolean - Enables VLAN functionality.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- mirror
Monitor NumberPort - Switch port to which packets are mirrored.
- mirror
Source NumberPort - Switch port from which packets are mirrored.
- name String
- reset Boolean
- Reset the switch.
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
