fortios.switchcontroller.Lldpsettings
Explore with Pulumi AI
Configure FortiSwitch LLDP settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.switchcontroller.Lldpsettings("trname", {
fastStartInterval: 2,
managementInterface: "internal",
status: "enable",
txHold: 4,
txInterval: 30,
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.switchcontroller.Lldpsettings("trname",
fast_start_interval=2,
management_interface="internal",
status="enable",
tx_hold=4,
tx_interval=30)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/switchcontroller"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := switchcontroller.NewLldpsettings(ctx, "trname", &switchcontroller.LldpsettingsArgs{
FastStartInterval: pulumi.Int(2),
ManagementInterface: pulumi.String("internal"),
Status: pulumi.String("enable"),
TxHold: pulumi.Int(4),
TxInterval: pulumi.Int(30),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Switchcontroller.Lldpsettings("trname", new()
{
FastStartInterval = 2,
ManagementInterface = "internal",
Status = "enable",
TxHold = 4,
TxInterval = 30,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.switchcontroller.Lldpsettings;
import com.pulumi.fortios.switchcontroller.LldpsettingsArgs;
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 trname = new Lldpsettings("trname", LldpsettingsArgs.builder()
.fastStartInterval(2)
.managementInterface("internal")
.status("enable")
.txHold(4)
.txInterval(30)
.build());
}
}
resources:
trname:
type: fortios:switchcontroller:Lldpsettings
properties:
fastStartInterval: 2
managementInterface: internal
status: enable
txHold: 4
txInterval: 30
Create Lldpsettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Lldpsettings(name: string, args?: LldpsettingsArgs, opts?: CustomResourceOptions);
@overload
def Lldpsettings(resource_name: str,
args: Optional[LldpsettingsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Lldpsettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_detection: Optional[str] = None,
fast_start_interval: Optional[int] = None,
management_interface: Optional[str] = None,
status: Optional[str] = None,
tx_hold: Optional[int] = None,
tx_interval: Optional[int] = None,
vdomparam: Optional[str] = None)
func NewLldpsettings(ctx *Context, name string, args *LldpsettingsArgs, opts ...ResourceOption) (*Lldpsettings, error)
public Lldpsettings(string name, LldpsettingsArgs? args = null, CustomResourceOptions? opts = null)
public Lldpsettings(String name, LldpsettingsArgs args)
public Lldpsettings(String name, LldpsettingsArgs args, CustomResourceOptions options)
type: fortios:switchcontroller:Lldpsettings
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 LldpsettingsArgs
- 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 LldpsettingsArgs
- 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 LldpsettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LldpsettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LldpsettingsArgs
- 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 lldpsettingsResource = new Fortios.Switchcontroller.Lldpsettings("lldpsettingsResource", new()
{
DeviceDetection = "string",
FastStartInterval = 0,
ManagementInterface = "string",
Status = "string",
TxHold = 0,
TxInterval = 0,
Vdomparam = "string",
});
example, err := switchcontroller.NewLldpsettings(ctx, "lldpsettingsResource", &switchcontroller.LldpsettingsArgs{
DeviceDetection: pulumi.String("string"),
FastStartInterval: pulumi.Int(0),
ManagementInterface: pulumi.String("string"),
Status: pulumi.String("string"),
TxHold: pulumi.Int(0),
TxInterval: pulumi.Int(0),
Vdomparam: pulumi.String("string"),
})
var lldpsettingsResource = new Lldpsettings("lldpsettingsResource", LldpsettingsArgs.builder()
.deviceDetection("string")
.fastStartInterval(0)
.managementInterface("string")
.status("string")
.txHold(0)
.txInterval(0)
.vdomparam("string")
.build());
lldpsettings_resource = fortios.switchcontroller.Lldpsettings("lldpsettingsResource",
device_detection="string",
fast_start_interval=0,
management_interface="string",
status="string",
tx_hold=0,
tx_interval=0,
vdomparam="string")
const lldpsettingsResource = new fortios.switchcontroller.Lldpsettings("lldpsettingsResource", {
deviceDetection: "string",
fastStartInterval: 0,
managementInterface: "string",
status: "string",
txHold: 0,
txInterval: 0,
vdomparam: "string",
});
type: fortios:switchcontroller:Lldpsettings
properties:
deviceDetection: string
fastStartInterval: 0
managementInterface: string
status: string
txHold: 0
txInterval: 0
vdomparam: string
Lldpsettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Lldpsettings resource accepts the following input properties:
- Device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - Fast
Start intInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- Management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - Status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - Tx
Hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- Tx
Interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - Fast
Start intInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- Management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - Status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - Tx
Hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- Tx
Interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection String - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start IntegerInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface String - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status String
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold Integer - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval Integer - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start numberInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold number - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval number - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device_
detection str - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast_
start_ intinterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management_
interface str - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status str
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx_
hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx_
interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection String - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start NumberInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface String - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status String
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold Number - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval Number - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Lldpsettings 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 Lldpsettings Resource
Get an existing Lldpsettings 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?: LldpsettingsState, opts?: CustomResourceOptions): Lldpsettings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device_detection: Optional[str] = None,
fast_start_interval: Optional[int] = None,
management_interface: Optional[str] = None,
status: Optional[str] = None,
tx_hold: Optional[int] = None,
tx_interval: Optional[int] = None,
vdomparam: Optional[str] = None) -> Lldpsettings
func GetLldpsettings(ctx *Context, name string, id IDInput, state *LldpsettingsState, opts ...ResourceOption) (*Lldpsettings, error)
public static Lldpsettings Get(string name, Input<string> id, LldpsettingsState? state, CustomResourceOptions? opts = null)
public static Lldpsettings get(String name, Output<String> id, LldpsettingsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - Fast
Start intInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- Management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - Status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - Tx
Hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- Tx
Interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - Fast
Start intInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- Management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - Status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - Tx
Hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- Tx
Interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection String - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start IntegerInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface String - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status String
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold Integer - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval Integer - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection string - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start numberInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface string - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status string
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold number - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval number - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device_
detection str - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast_
start_ intinterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management_
interface str - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status str
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx_
hold int - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx_
interval int - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- device
Detection String - Enable/disable dynamic detection of LLDP neighbor devices for VLAN assignment. Valid values:
disable
,enable
. - fast
Start NumberInterval - Frequency of LLDP PDU transmission from FortiSwitch for the first 4 packets when the link is up (2 - 5 sec, default = 2, 0 = disable fast start).
- management
Interface String - Primary management interface to be advertised in LLDP and CDP PDUs. Valid values:
internal
,mgmt
. - status String
- Enable/disable LLDP global settings. Valid values:
enable
,disable
. - tx
Hold Number - Number of tx-intervals before local LLDP data expires (1 - 16, default = 4). Packet TTL is tx-hold * tx-interval.
- tx
Interval Number - Frequency of LLDP PDU transmission from FortiSwitch (5 - 4095 sec, default = 30). Packet TTL is tx-hold * tx-interval.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
SwitchController LldpSettings can be imported using any of these accepted formats:
$ pulumi import fortios:switchcontroller/lldpsettings:Lldpsettings labelname SwitchControllerLldpSettings
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:switchcontroller/lldpsettings:Lldpsettings labelname SwitchControllerLldpSettings
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.