iosxe.BgpAddressFamilyIpv6
Explore with Pulumi AI
This resource can manage the BGP Address Family IPv6 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.BgpAddressFamilyIpv6;
import com.pulumi.iosxe.BgpAddressFamilyIpv6Args;
import com.pulumi.iosxe.inputs.BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs;
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 BgpAddressFamilyIpv6("example", BgpAddressFamilyIpv6Args.builder()
.afName("unicast")
.asn("65000")
.ipv6UnicastNetworks(BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs.builder()
.backdoor(true)
.network("2001:1234::/64")
.route_map("RM1")
.build())
.ipv6UnicastRedistributeConnected(true)
.ipv6UnicastRedistributeStatic(true)
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:BgpAddressFamilyIpv6
properties:
afName: unicast
asn: '65000'
ipv6UnicastNetworks:
- backdoor: true
network: 2001:1234::/64
route_map: RM1
ipv6UnicastRedistributeConnected: true
ipv6UnicastRedistributeStatic: true
Create BgpAddressFamilyIpv6 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpAddressFamilyIpv6(name: string, args: BgpAddressFamilyIpv6Args, opts?: CustomResourceOptions);
@overload
def BgpAddressFamilyIpv6(resource_name: str,
args: BgpAddressFamilyIpv6Args,
opts: Optional[ResourceOptions] = None)
@overload
def BgpAddressFamilyIpv6(resource_name: str,
opts: Optional[ResourceOptions] = None,
af_name: Optional[str] = None,
asn: Optional[str] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
ipv6_unicast_networks: Optional[Sequence[BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs]] = None,
ipv6_unicast_redistribute_connected: Optional[bool] = None,
ipv6_unicast_redistribute_static: Optional[bool] = None)
func NewBgpAddressFamilyIpv6(ctx *Context, name string, args BgpAddressFamilyIpv6Args, opts ...ResourceOption) (*BgpAddressFamilyIpv6, error)
public BgpAddressFamilyIpv6(string name, BgpAddressFamilyIpv6Args args, CustomResourceOptions? opts = null)
public BgpAddressFamilyIpv6(String name, BgpAddressFamilyIpv6Args args)
public BgpAddressFamilyIpv6(String name, BgpAddressFamilyIpv6Args args, CustomResourceOptions options)
type: iosxe:BgpAddressFamilyIpv6
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 BgpAddressFamilyIpv6Args
- 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 BgpAddressFamilyIpv6Args
- 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 BgpAddressFamilyIpv6Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpAddressFamilyIpv6Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpAddressFamilyIpv6Args
- 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 bgpAddressFamilyIpv6Resource = new Iosxe.BgpAddressFamilyIpv6("bgpAddressFamilyIpv6Resource", new()
{
AfName = "string",
Asn = "string",
DeleteMode = "string",
Device = "string",
Ipv6UnicastNetworks = new[]
{
new Iosxe.Inputs.BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs
{
Network = "string",
Backdoor = false,
RouteMap = "string",
},
},
Ipv6UnicastRedistributeConnected = false,
Ipv6UnicastRedistributeStatic = false,
});
example, err := iosxe.NewBgpAddressFamilyIpv6(ctx, "bgpAddressFamilyIpv6Resource", &iosxe.BgpAddressFamilyIpv6Args{
AfName: pulumi.String("string"),
Asn: pulumi.String("string"),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Ipv6UnicastNetworks: iosxe.BgpAddressFamilyIpv6Ipv6UnicastNetworkArray{
&iosxe.BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs{
Network: pulumi.String("string"),
Backdoor: pulumi.Bool(false),
RouteMap: pulumi.String("string"),
},
},
Ipv6UnicastRedistributeConnected: pulumi.Bool(false),
Ipv6UnicastRedistributeStatic: pulumi.Bool(false),
})
var bgpAddressFamilyIpv6Resource = new BgpAddressFamilyIpv6("bgpAddressFamilyIpv6Resource", BgpAddressFamilyIpv6Args.builder()
.afName("string")
.asn("string")
.deleteMode("string")
.device("string")
.ipv6UnicastNetworks(BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs.builder()
.network("string")
.backdoor(false)
.routeMap("string")
.build())
.ipv6UnicastRedistributeConnected(false)
.ipv6UnicastRedistributeStatic(false)
.build());
bgp_address_family_ipv6_resource = iosxe.BgpAddressFamilyIpv6("bgpAddressFamilyIpv6Resource",
af_name="string",
asn="string",
delete_mode="string",
device="string",
ipv6_unicast_networks=[{
"network": "string",
"backdoor": False,
"route_map": "string",
}],
ipv6_unicast_redistribute_connected=False,
ipv6_unicast_redistribute_static=False)
const bgpAddressFamilyIpv6Resource = new iosxe.BgpAddressFamilyIpv6("bgpAddressFamilyIpv6Resource", {
afName: "string",
asn: "string",
deleteMode: "string",
device: "string",
ipv6UnicastNetworks: [{
network: "string",
backdoor: false,
routeMap: "string",
}],
ipv6UnicastRedistributeConnected: false,
ipv6UnicastRedistributeStatic: false,
});
type: iosxe:BgpAddressFamilyIpv6
properties:
afName: string
asn: string
deleteMode: string
device: string
ipv6UnicastNetworks:
- backdoor: false
network: string
routeMap: string
ipv6UnicastRedistributeConnected: false
ipv6UnicastRedistributeStatic: false
BgpAddressFamilyIpv6 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 BgpAddressFamilyIpv6 resource accepts the following input properties:
- Af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- Asn string
- 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
- Device string
- A device name from the provider configuration.
- Ipv6Unicast
Networks List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Bgp Address Family Ipv6Ipv6Unicast Network> - Specify a network to announce via BGP
- Ipv6Unicast
Redistribute boolConnected - Connected
- Ipv6Unicast
Redistribute boolStatic - Static routes
- Af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- Asn string
- 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
- Device string
- A device name from the provider configuration.
- Ipv6Unicast
Networks []BgpAddress Family Ipv6Ipv6Unicast Network Args - Specify a network to announce via BGP
- Ipv6Unicast
Redistribute boolConnected - Connected
- Ipv6Unicast
Redistribute boolStatic - Static routes
- af
Name String - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn String
- 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
- device String
- A device name from the provider configuration.
- ipv6Unicast
Networks List<BgpAddress Family Ipv6Ipv6Unicast Network> - Specify a network to announce via BGP
- ipv6Unicast
Redistribute BooleanConnected - Connected
- ipv6Unicast
Redistribute BooleanStatic - Static routes
- af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn string
- 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
- device string
- A device name from the provider configuration.
- ipv6Unicast
Networks BgpAddress Family Ipv6Ipv6Unicast Network[] - Specify a network to announce via BGP
- ipv6Unicast
Redistribute booleanConnected - Connected
- ipv6Unicast
Redistribute booleanStatic - Static routes
- af_
name str - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn str
- 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
- device str
- A device name from the provider configuration.
- ipv6_
unicast_ Sequence[Bgpnetworks Address Family Ipv6Ipv6Unicast Network Args] - Specify a network to announce via BGP
- ipv6_
unicast_ boolredistribute_ connected - Connected
- ipv6_
unicast_ boolredistribute_ static - Static routes
- af
Name String - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn String
- 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
- device String
- A device name from the provider configuration.
- ipv6Unicast
Networks List<Property Map> - Specify a network to announce via BGP
- ipv6Unicast
Redistribute BooleanConnected - Connected
- ipv6Unicast
Redistribute BooleanStatic - Static routes
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpAddressFamilyIpv6 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 BgpAddressFamilyIpv6 Resource
Get an existing BgpAddressFamilyIpv6 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?: BgpAddressFamilyIpv6State, opts?: CustomResourceOptions): BgpAddressFamilyIpv6
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
af_name: Optional[str] = None,
asn: Optional[str] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
ipv6_unicast_networks: Optional[Sequence[BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs]] = None,
ipv6_unicast_redistribute_connected: Optional[bool] = None,
ipv6_unicast_redistribute_static: Optional[bool] = None) -> BgpAddressFamilyIpv6
func GetBgpAddressFamilyIpv6(ctx *Context, name string, id IDInput, state *BgpAddressFamilyIpv6State, opts ...ResourceOption) (*BgpAddressFamilyIpv6, error)
public static BgpAddressFamilyIpv6 Get(string name, Input<string> id, BgpAddressFamilyIpv6State? state, CustomResourceOptions? opts = null)
public static BgpAddressFamilyIpv6 get(String name, Output<String> id, BgpAddressFamilyIpv6State 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.
- Af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- Asn string
- 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
- Device string
- A device name from the provider configuration.
- Ipv6Unicast
Networks List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Bgp Address Family Ipv6Ipv6Unicast Network> - Specify a network to announce via BGP
- Ipv6Unicast
Redistribute boolConnected - Connected
- Ipv6Unicast
Redistribute boolStatic - Static routes
- Af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- Asn string
- 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
- Device string
- A device name from the provider configuration.
- Ipv6Unicast
Networks []BgpAddress Family Ipv6Ipv6Unicast Network Args - Specify a network to announce via BGP
- Ipv6Unicast
Redistribute boolConnected - Connected
- Ipv6Unicast
Redistribute boolStatic - Static routes
- af
Name String - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn String
- 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
- device String
- A device name from the provider configuration.
- ipv6Unicast
Networks List<BgpAddress Family Ipv6Ipv6Unicast Network> - Specify a network to announce via BGP
- ipv6Unicast
Redistribute BooleanConnected - Connected
- ipv6Unicast
Redistribute BooleanStatic - Static routes
- af
Name string - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn string
- 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
- device string
- A device name from the provider configuration.
- ipv6Unicast
Networks BgpAddress Family Ipv6Ipv6Unicast Network[] - Specify a network to announce via BGP
- ipv6Unicast
Redistribute booleanConnected - Connected
- ipv6Unicast
Redistribute booleanStatic - Static routes
- af_
name str - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn str
- 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
- device str
- A device name from the provider configuration.
- ipv6_
unicast_ Sequence[Bgpnetworks Address Family Ipv6Ipv6Unicast Network Args] - Specify a network to announce via BGP
- ipv6_
unicast_ boolredistribute_ connected - Connected
- ipv6_
unicast_ boolredistribute_ static - Static routes
- af
Name String - Choices:
flowspec
,mdt
,multicast
,mvpn
,unicast
- Choices:
- asn String
- 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
- device String
- A device name from the provider configuration.
- ipv6Unicast
Networks List<Property Map> - Specify a network to announce via BGP
- ipv6Unicast
Redistribute BooleanConnected - Connected
- ipv6Unicast
Redistribute BooleanStatic - Static routes
Supporting Types
BgpAddressFamilyIpv6Ipv6UnicastNetwork, BgpAddressFamilyIpv6Ipv6UnicastNetworkArgs
Import
$ pulumi import iosxe:index/bgpAddressFamilyIpv6:BgpAddressFamilyIpv6 example "Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp=65000/address-family/no-vrf/ipv6=unicast"
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.