iosxe.InterfaceNve
Explore with Pulumi AI
This resource can manage the Interface NVE configuration.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.InterfaceNve;
import com.pulumi.iosxe.InterfaceNveArgs;
import com.pulumi.iosxe.inputs.InterfaceNveVniArgs;
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 example = new InterfaceNve("example", InterfaceNveArgs.builder()
.description("My Interface Description")
.hostReachabilityProtocolBgp(true)
.shutdown(false)
.sourceInterfaceLoopback(100)
.vnis(InterfaceNveVniArgs.builder()
.ipv4_multicast_group("225.1.1.1")
.vni_range("10000")
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:InterfaceNve
properties:
description: My Interface Description
hostReachabilityProtocolBgp: true
shutdown: false
sourceInterfaceLoopback: 100
vnis:
- ipv4_multicast_group: 225.1.1.1
vni_range: '10000'
Create InterfaceNve Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterfaceNve(name: string, args?: InterfaceNveArgs, opts?: CustomResourceOptions);
@overload
def InterfaceNve(resource_name: str,
args: Optional[InterfaceNveArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InterfaceNve(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_mode: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
host_reachability_protocol_bgp: Optional[bool] = None,
name: Optional[int] = None,
shutdown: Optional[bool] = None,
source_interface_loopback: Optional[int] = None,
vni_vrfs: Optional[Sequence[InterfaceNveVniVrfArgs]] = None,
vnis: Optional[Sequence[InterfaceNveVniArgs]] = None)
func NewInterfaceNve(ctx *Context, name string, args *InterfaceNveArgs, opts ...ResourceOption) (*InterfaceNve, error)
public InterfaceNve(string name, InterfaceNveArgs? args = null, CustomResourceOptions? opts = null)
public InterfaceNve(String name, InterfaceNveArgs args)
public InterfaceNve(String name, InterfaceNveArgs args, CustomResourceOptions options)
type: iosxe:InterfaceNve
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 InterfaceNveArgs
- 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 InterfaceNveArgs
- 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 InterfaceNveArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterfaceNveArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterfaceNveArgs
- 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 interfaceNveResource = new Iosxe.InterfaceNve("interfaceNveResource", new()
{
DeleteMode = "string",
Description = "string",
Device = "string",
HostReachabilityProtocolBgp = false,
Name = 0,
Shutdown = false,
SourceInterfaceLoopback = 0,
VniVrfs = new[]
{
new Iosxe.Inputs.InterfaceNveVniVrfArgs
{
VniRange = "string",
Vrf = "string",
},
},
Vnis = new[]
{
new Iosxe.Inputs.InterfaceNveVniArgs
{
VniRange = "string",
IngressReplication = false,
Ipv4MulticastGroup = "string",
},
},
});
example, err := iosxe.NewInterfaceNve(ctx, "interfaceNveResource", &iosxe.InterfaceNveArgs{
DeleteMode: pulumi.String("string"),
Description: pulumi.String("string"),
Device: pulumi.String("string"),
HostReachabilityProtocolBgp: pulumi.Bool(false),
Name: pulumi.Int(0),
Shutdown: pulumi.Bool(false),
SourceInterfaceLoopback: pulumi.Int(0),
VniVrfs: iosxe.InterfaceNveVniVrfArray{
&iosxe.InterfaceNveVniVrfArgs{
VniRange: pulumi.String("string"),
Vrf: pulumi.String("string"),
},
},
Vnis: iosxe.InterfaceNveVniArray{
&iosxe.InterfaceNveVniArgs{
VniRange: pulumi.String("string"),
IngressReplication: pulumi.Bool(false),
Ipv4MulticastGroup: pulumi.String("string"),
},
},
})
var interfaceNveResource = new InterfaceNve("interfaceNveResource", InterfaceNveArgs.builder()
.deleteMode("string")
.description("string")
.device("string")
.hostReachabilityProtocolBgp(false)
.name(0)
.shutdown(false)
.sourceInterfaceLoopback(0)
.vniVrfs(InterfaceNveVniVrfArgs.builder()
.vniRange("string")
.vrf("string")
.build())
.vnis(InterfaceNveVniArgs.builder()
.vniRange("string")
.ingressReplication(false)
.ipv4MulticastGroup("string")
.build())
.build());
interface_nve_resource = iosxe.InterfaceNve("interfaceNveResource",
delete_mode="string",
description="string",
device="string",
host_reachability_protocol_bgp=False,
name=0,
shutdown=False,
source_interface_loopback=0,
vni_vrfs=[iosxe.InterfaceNveVniVrfArgs(
vni_range="string",
vrf="string",
)],
vnis=[iosxe.InterfaceNveVniArgs(
vni_range="string",
ingress_replication=False,
ipv4_multicast_group="string",
)])
const interfaceNveResource = new iosxe.InterfaceNve("interfaceNveResource", {
deleteMode: "string",
description: "string",
device: "string",
hostReachabilityProtocolBgp: false,
name: 0,
shutdown: false,
sourceInterfaceLoopback: 0,
vniVrfs: [{
vniRange: "string",
vrf: "string",
}],
vnis: [{
vniRange: "string",
ingressReplication: false,
ipv4MulticastGroup: "string",
}],
});
type: iosxe:InterfaceNve
properties:
deleteMode: string
description: string
device: string
hostReachabilityProtocolBgp: false
name: 0
shutdown: false
sourceInterfaceLoopback: 0
vniVrfs:
- vniRange: string
vrf: string
vnis:
- ingressReplication: false
ipv4MulticastGroup: string
vniRange: string
InterfaceNve 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 InterfaceNve resource accepts the following input properties:
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- Interface specific description
- Device string
- A device name from the provider configuration.
- Host
Reachability boolProtocol Bgp - Name int
- Range:
1
-4096
- Range:
- Shutdown bool
- Shutdown the selected interface
- Source
Interface intLoopback - Loopback interface - Range:
0
-2147483647
- Vni
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Interface Nve Vni Vrf> - Configure VNI information
- Vnis
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Interface Nve Vni> - Configure VNI information
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- Interface specific description
- Device string
- A device name from the provider configuration.
- Host
Reachability boolProtocol Bgp - Name int
- Range:
1
-4096
- Range:
- Shutdown bool
- Shutdown the selected interface
- Source
Interface intLoopback - Loopback interface - Range:
0
-2147483647
- Vni
Vrfs []InterfaceNve Vni Vrf Args - Configure VNI information
- Vnis
[]Interface
Nve Vni Args - Configure VNI information
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- Interface specific description
- device String
- A device name from the provider configuration.
- host
Reachability BooleanProtocol Bgp - name Integer
- Range:
1
-4096
- Range:
- shutdown Boolean
- Shutdown the selected interface
- source
Interface IntegerLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs List<InterfaceNve Vni Vrf> - Configure VNI information
- vnis
List<Interface
Nve Vni> - Configure VNI information
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description string
- Interface specific description
- device string
- A device name from the provider configuration.
- host
Reachability booleanProtocol Bgp - name number
- Range:
1
-4096
- Range:
- shutdown boolean
- Shutdown the selected interface
- source
Interface numberLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs InterfaceNve Vni Vrf[] - Configure VNI information
- vnis
Interface
Nve Vni[] - Configure VNI information
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description str
- Interface specific description
- device str
- A device name from the provider configuration.
- host_
reachability_ boolprotocol_ bgp - name int
- Range:
1
-4096
- Range:
- shutdown bool
- Shutdown the selected interface
- source_
interface_ intloopback - Loopback interface - Range:
0
-2147483647
- vni_
vrfs Sequence[InterfaceNve Vni Vrf Args] - Configure VNI information
- vnis
Sequence[Interface
Nve Vni Args] - Configure VNI information
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- Interface specific description
- device String
- A device name from the provider configuration.
- host
Reachability BooleanProtocol Bgp - name Number
- Range:
1
-4096
- Range:
- shutdown Boolean
- Shutdown the selected interface
- source
Interface NumberLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs List<Property Map> - Configure VNI information
- vnis List<Property Map>
- Configure VNI information
Outputs
All input properties are implicitly available as output properties. Additionally, the InterfaceNve 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 InterfaceNve Resource
Get an existing InterfaceNve 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?: InterfaceNveState, opts?: CustomResourceOptions): InterfaceNve
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_mode: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
host_reachability_protocol_bgp: Optional[bool] = None,
name: Optional[int] = None,
shutdown: Optional[bool] = None,
source_interface_loopback: Optional[int] = None,
vni_vrfs: Optional[Sequence[InterfaceNveVniVrfArgs]] = None,
vnis: Optional[Sequence[InterfaceNveVniArgs]] = None) -> InterfaceNve
func GetInterfaceNve(ctx *Context, name string, id IDInput, state *InterfaceNveState, opts ...ResourceOption) (*InterfaceNve, error)
public static InterfaceNve Get(string name, Input<string> id, InterfaceNveState? state, CustomResourceOptions? opts = null)
public static InterfaceNve get(String name, Output<String> id, InterfaceNveState 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.
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- Interface specific description
- Device string
- A device name from the provider configuration.
- Host
Reachability boolProtocol Bgp - Name int
- Range:
1
-4096
- Range:
- Shutdown bool
- Shutdown the selected interface
- Source
Interface intLoopback - Loopback interface - Range:
0
-2147483647
- Vni
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Interface Nve Vni Vrf> - Configure VNI information
- Vnis
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Interface Nve Vni> - Configure VNI information
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Description string
- Interface specific description
- Device string
- A device name from the provider configuration.
- Host
Reachability boolProtocol Bgp - Name int
- Range:
1
-4096
- Range:
- Shutdown bool
- Shutdown the selected interface
- Source
Interface intLoopback - Loopback interface - Range:
0
-2147483647
- Vni
Vrfs []InterfaceNve Vni Vrf Args - Configure VNI information
- Vnis
[]Interface
Nve Vni Args - Configure VNI information
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- Interface specific description
- device String
- A device name from the provider configuration.
- host
Reachability BooleanProtocol Bgp - name Integer
- Range:
1
-4096
- Range:
- shutdown Boolean
- Shutdown the selected interface
- source
Interface IntegerLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs List<InterfaceNve Vni Vrf> - Configure VNI information
- vnis
List<Interface
Nve Vni> - Configure VNI information
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description string
- Interface specific description
- device string
- A device name from the provider configuration.
- host
Reachability booleanProtocol Bgp - name number
- Range:
1
-4096
- Range:
- shutdown boolean
- Shutdown the selected interface
- source
Interface numberLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs InterfaceNve Vni Vrf[] - Configure VNI information
- vnis
Interface
Nve Vni[] - Configure VNI information
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description str
- Interface specific description
- device str
- A device name from the provider configuration.
- host_
reachability_ boolprotocol_ bgp - name int
- Range:
1
-4096
- Range:
- shutdown bool
- Shutdown the selected interface
- source_
interface_ intloopback - Loopback interface - Range:
0
-2147483647
- vni_
vrfs Sequence[InterfaceNve Vni Vrf Args] - Configure VNI information
- vnis
Sequence[Interface
Nve Vni Args] - Configure VNI information
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- description String
- Interface specific description
- device String
- A device name from the provider configuration.
- host
Reachability BooleanProtocol Bgp - name Number
- Range:
1
-4096
- Range:
- shutdown Boolean
- Shutdown the selected interface
- source
Interface NumberLoopback - Loopback interface - Range:
0
-2147483647
- vni
Vrfs List<Property Map> - Configure VNI information
- vnis List<Property Map>
- Configure VNI information
Supporting Types
InterfaceNveVni, InterfaceNveVniArgs
- Vni
Range string - Ingress
Replication bool - Ipv4Multicast
Group string
- Vni
Range string - Ingress
Replication bool - Ipv4Multicast
Group string
- vni
Range String - ingress
Replication Boolean - ipv4Multicast
Group String
- vni
Range string - ingress
Replication boolean - ipv4Multicast
Group string
- vni_
range str - ingress_
replication bool - ipv4_
multicast_ strgroup
- vni
Range String - ingress
Replication Boolean - ipv4Multicast
Group String
InterfaceNveVniVrf, InterfaceNveVniVrfArgs
Import
$ pulumi import iosxe:index/interfaceNve:InterfaceNve example "Cisco-IOS-XE-native:native/interface/nve=1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.