iosxe.BgpIpv6UnicastNeighbor
Explore with Pulumi AI
This resource can manage the BGP IPv6 Unicast Neighbor 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.BgpIpv6UnicastNeighbor;
import com.pulumi.iosxe.BgpIpv6UnicastNeighborArgs;
import com.pulumi.iosxe.inputs.BgpIpv6UnicastNeighborRouteMapArgs;
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 BgpIpv6UnicastNeighbor("example", BgpIpv6UnicastNeighborArgs.builder()
.activate(true)
.asn("65000")
.ip("3.3.3.3")
.routeMaps(BgpIpv6UnicastNeighborRouteMapArgs.builder()
.in_out("in")
.route_map_name("RM1")
.build())
.routeReflectorClient(false)
.sendCommunity("both")
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:BgpIpv6UnicastNeighbor
properties:
activate: true
asn: '65000'
ip: 3.3.3.3
routeMaps:
- in_out: in
route_map_name: RM1
routeReflectorClient: false
sendCommunity: both
Create BgpIpv6UnicastNeighbor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpIpv6UnicastNeighbor(name: string, args: BgpIpv6UnicastNeighborArgs, opts?: CustomResourceOptions);
@overload
def BgpIpv6UnicastNeighbor(resource_name: str,
args: BgpIpv6UnicastNeighborArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpIpv6UnicastNeighbor(resource_name: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[str] = None,
ip: Optional[str] = None,
activate: Optional[bool] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
route_maps: Optional[Sequence[BgpIpv6UnicastNeighborRouteMapArgs]] = None,
route_reflector_client: Optional[bool] = None,
send_community: Optional[str] = None)
func NewBgpIpv6UnicastNeighbor(ctx *Context, name string, args BgpIpv6UnicastNeighborArgs, opts ...ResourceOption) (*BgpIpv6UnicastNeighbor, error)
public BgpIpv6UnicastNeighbor(string name, BgpIpv6UnicastNeighborArgs args, CustomResourceOptions? opts = null)
public BgpIpv6UnicastNeighbor(String name, BgpIpv6UnicastNeighborArgs args)
public BgpIpv6UnicastNeighbor(String name, BgpIpv6UnicastNeighborArgs args, CustomResourceOptions options)
type: iosxe:BgpIpv6UnicastNeighbor
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 BgpIpv6UnicastNeighborArgs
- 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 BgpIpv6UnicastNeighborArgs
- 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 BgpIpv6UnicastNeighborArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpIpv6UnicastNeighborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpIpv6UnicastNeighborArgs
- 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 bgpIpv6UnicastNeighborResource = new Iosxe.BgpIpv6UnicastNeighbor("bgpIpv6UnicastNeighborResource", new()
{
Asn = "string",
Ip = "string",
Activate = false,
DeleteMode = "string",
Device = "string",
RouteMaps = new[]
{
new Iosxe.Inputs.BgpIpv6UnicastNeighborRouteMapArgs
{
InOut = "string",
RouteMapName = "string",
},
},
RouteReflectorClient = false,
SendCommunity = "string",
});
example, err := iosxe.NewBgpIpv6UnicastNeighbor(ctx, "bgpIpv6UnicastNeighborResource", &iosxe.BgpIpv6UnicastNeighborArgs{
Asn: pulumi.String("string"),
Ip: pulumi.String("string"),
Activate: pulumi.Bool(false),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
RouteMaps: iosxe.BgpIpv6UnicastNeighborRouteMapArray{
&iosxe.BgpIpv6UnicastNeighborRouteMapArgs{
InOut: pulumi.String("string"),
RouteMapName: pulumi.String("string"),
},
},
RouteReflectorClient: pulumi.Bool(false),
SendCommunity: pulumi.String("string"),
})
var bgpIpv6UnicastNeighborResource = new BgpIpv6UnicastNeighbor("bgpIpv6UnicastNeighborResource", BgpIpv6UnicastNeighborArgs.builder()
.asn("string")
.ip("string")
.activate(false)
.deleteMode("string")
.device("string")
.routeMaps(BgpIpv6UnicastNeighborRouteMapArgs.builder()
.inOut("string")
.routeMapName("string")
.build())
.routeReflectorClient(false)
.sendCommunity("string")
.build());
bgp_ipv6_unicast_neighbor_resource = iosxe.BgpIpv6UnicastNeighbor("bgpIpv6UnicastNeighborResource",
asn="string",
ip="string",
activate=False,
delete_mode="string",
device="string",
route_maps=[{
"in_out": "string",
"route_map_name": "string",
}],
route_reflector_client=False,
send_community="string")
const bgpIpv6UnicastNeighborResource = new iosxe.BgpIpv6UnicastNeighbor("bgpIpv6UnicastNeighborResource", {
asn: "string",
ip: "string",
activate: false,
deleteMode: "string",
device: "string",
routeMaps: [{
inOut: "string",
routeMapName: "string",
}],
routeReflectorClient: false,
sendCommunity: "string",
});
type: iosxe:BgpIpv6UnicastNeighbor
properties:
activate: false
asn: string
deleteMode: string
device: string
ip: string
routeMaps:
- inOut: string
routeMapName: string
routeReflectorClient: false
sendCommunity: string
BgpIpv6UnicastNeighbor 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 BgpIpv6UnicastNeighbor resource accepts the following input properties:
- Asn string
- Ip string
- Activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- Route
Maps List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Bgp Ipv6Unicast Neighbor Route Map> - Apply route map to neighbor
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Choices:
both
,extended
,standard
- Choices:
- Asn string
- Ip string
- Activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- Route
Maps []BgpIpv6Unicast Neighbor Route Map Args - Apply route map to neighbor
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Choices:
both
,extended
,standard
- Choices:
- asn String
- ip String
- activate Boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- route
Maps List<BgpIpv6Unicast Neighbor Route Map> - Apply route map to neighbor
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - Choices:
both
,extended
,standard
- Choices:
- asn string
- ip string
- activate boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- route
Maps BgpIpv6Unicast Neighbor Route Map[] - Apply route map to neighbor
- route
Reflector booleanClient - Configure a neighbor as Route Reflector client
- send
Community string - Choices:
both
,extended
,standard
- Choices:
- asn str
- ip str
- activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- route_
maps Sequence[BgpIpv6Unicast Neighbor Route Map Args] - Apply route map to neighbor
- route_
reflector_ boolclient - Configure a neighbor as Route Reflector client
- send_
community str - Choices:
both
,extended
,standard
- Choices:
- asn String
- ip String
- activate Boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- route
Maps List<Property Map> - Apply route map to neighbor
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - Choices:
both
,extended
,standard
- Choices:
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpIpv6UnicastNeighbor 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 BgpIpv6UnicastNeighbor Resource
Get an existing BgpIpv6UnicastNeighbor 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?: BgpIpv6UnicastNeighborState, opts?: CustomResourceOptions): BgpIpv6UnicastNeighbor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
activate: Optional[bool] = None,
asn: Optional[str] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
ip: Optional[str] = None,
route_maps: Optional[Sequence[BgpIpv6UnicastNeighborRouteMapArgs]] = None,
route_reflector_client: Optional[bool] = None,
send_community: Optional[str] = None) -> BgpIpv6UnicastNeighbor
func GetBgpIpv6UnicastNeighbor(ctx *Context, name string, id IDInput, state *BgpIpv6UnicastNeighborState, opts ...ResourceOption) (*BgpIpv6UnicastNeighbor, error)
public static BgpIpv6UnicastNeighbor Get(string name, Input<string> id, BgpIpv6UnicastNeighborState? state, CustomResourceOptions? opts = null)
public static BgpIpv6UnicastNeighbor get(String name, Output<String> id, BgpIpv6UnicastNeighborState 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.
- Activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- Ip string
- Route
Maps List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Bgp Ipv6Unicast Neighbor Route Map> - Apply route map to neighbor
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Choices:
both
,extended
,standard
- Choices:
- Activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- Ip string
- Route
Maps []BgpIpv6Unicast Neighbor Route Map Args - Apply route map to neighbor
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Choices:
both
,extended
,standard
- Choices:
- activate Boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- ip String
- route
Maps List<BgpIpv6Unicast Neighbor Route Map> - Apply route map to neighbor
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - Choices:
both
,extended
,standard
- Choices:
- activate boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- ip string
- route
Maps BgpIpv6Unicast Neighbor Route Map[] - Apply route map to neighbor
- route
Reflector booleanClient - Configure a neighbor as Route Reflector client
- send
Community string - Choices:
both
,extended
,standard
- Choices:
- activate bool
- Enable the address family for this neighbor - Default value:
true
- 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.
- ip str
- route_
maps Sequence[BgpIpv6Unicast Neighbor Route Map Args] - Apply route map to neighbor
- route_
reflector_ boolclient - Configure a neighbor as Route Reflector client
- send_
community str - Choices:
both
,extended
,standard
- Choices:
- activate Boolean
- Enable the address family for this neighbor - Default value:
true
- 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.
- ip String
- route
Maps List<Property Map> - Apply route map to neighbor
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - Choices:
both
,extended
,standard
- Choices:
Supporting Types
BgpIpv6UnicastNeighborRouteMap, BgpIpv6UnicastNeighborRouteMapArgs
- In
Out string - Route
Map stringName
- In
Out string - Route
Map stringName
- in
Out String - route
Map StringName
- in
Out string - route
Map stringName
- in_
out str - route_
map_ strname
- in
Out String - route
Map StringName
Import
$ pulumi import iosxe:index/bgpIpv6UnicastNeighbor:BgpIpv6UnicastNeighbor example "Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp=65000/address-family/no-vrf/ipv6=unicast/ipv6-unicast/neighbor=3.3.3.3"
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.