iosxe.BgpIpv4UnicastNeighbor
Explore with Pulumi AI
This resource can manage the BGP IPv4 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.BgpIpv4UnicastNeighbor;
import com.pulumi.iosxe.BgpIpv4UnicastNeighborArgs;
import com.pulumi.iosxe.inputs.BgpIpv4UnicastNeighborRouteMapArgs;
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 BgpIpv4UnicastNeighbor("example", BgpIpv4UnicastNeighborArgs.builder()
.activate(true)
.asn("65000")
.ip("3.3.3.3")
.routeMaps(BgpIpv4UnicastNeighborRouteMapArgs.builder()
.in_out("in")
.route_map_name("RM1")
.build())
.routeReflectorClient(false)
.sendCommunity("both")
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:BgpIpv4UnicastNeighbor
properties:
activate: true
asn: '65000'
ip: 3.3.3.3
routeMaps:
- in_out: in
route_map_name: RM1
routeReflectorClient: false
sendCommunity: both
Create BgpIpv4UnicastNeighbor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpIpv4UnicastNeighbor(name: string, args: BgpIpv4UnicastNeighborArgs, opts?: CustomResourceOptions);
@overload
def BgpIpv4UnicastNeighbor(resource_name: str,
args: BgpIpv4UnicastNeighborArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpIpv4UnicastNeighbor(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[BgpIpv4UnicastNeighborRouteMapArgs]] = None,
route_reflector_client: Optional[bool] = None,
send_community: Optional[str] = None)
func NewBgpIpv4UnicastNeighbor(ctx *Context, name string, args BgpIpv4UnicastNeighborArgs, opts ...ResourceOption) (*BgpIpv4UnicastNeighbor, error)
public BgpIpv4UnicastNeighbor(string name, BgpIpv4UnicastNeighborArgs args, CustomResourceOptions? opts = null)
public BgpIpv4UnicastNeighbor(String name, BgpIpv4UnicastNeighborArgs args)
public BgpIpv4UnicastNeighbor(String name, BgpIpv4UnicastNeighborArgs args, CustomResourceOptions options)
type: iosxe:BgpIpv4UnicastNeighbor
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 BgpIpv4UnicastNeighborArgs
- 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 BgpIpv4UnicastNeighborArgs
- 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 BgpIpv4UnicastNeighborArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpIpv4UnicastNeighborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpIpv4UnicastNeighborArgs
- 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 bgpIpv4UnicastNeighborResource = new Iosxe.BgpIpv4UnicastNeighbor("bgpIpv4UnicastNeighborResource", new()
{
Asn = "string",
Ip = "string",
Activate = false,
DeleteMode = "string",
Device = "string",
RouteMaps = new[]
{
new Iosxe.Inputs.BgpIpv4UnicastNeighborRouteMapArgs
{
InOut = "string",
RouteMapName = "string",
},
},
RouteReflectorClient = false,
SendCommunity = "string",
});
example, err := iosxe.NewBgpIpv4UnicastNeighbor(ctx, "bgpIpv4UnicastNeighborResource", &iosxe.BgpIpv4UnicastNeighborArgs{
Asn: pulumi.String("string"),
Ip: pulumi.String("string"),
Activate: pulumi.Bool(false),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
RouteMaps: iosxe.BgpIpv4UnicastNeighborRouteMapArray{
&iosxe.BgpIpv4UnicastNeighborRouteMapArgs{
InOut: pulumi.String("string"),
RouteMapName: pulumi.String("string"),
},
},
RouteReflectorClient: pulumi.Bool(false),
SendCommunity: pulumi.String("string"),
})
var bgpIpv4UnicastNeighborResource = new BgpIpv4UnicastNeighbor("bgpIpv4UnicastNeighborResource", BgpIpv4UnicastNeighborArgs.builder()
.asn("string")
.ip("string")
.activate(false)
.deleteMode("string")
.device("string")
.routeMaps(BgpIpv4UnicastNeighborRouteMapArgs.builder()
.inOut("string")
.routeMapName("string")
.build())
.routeReflectorClient(false)
.sendCommunity("string")
.build());
bgp_ipv4_unicast_neighbor_resource = iosxe.BgpIpv4UnicastNeighbor("bgpIpv4UnicastNeighborResource",
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 bgpIpv4UnicastNeighborResource = new iosxe.BgpIpv4UnicastNeighbor("bgpIpv4UnicastNeighborResource", {
asn: "string",
ip: "string",
activate: false,
deleteMode: "string",
device: "string",
routeMaps: [{
inOut: "string",
routeMapName: "string",
}],
routeReflectorClient: false,
sendCommunity: "string",
});
type: iosxe:BgpIpv4UnicastNeighbor
properties:
activate: false
asn: string
deleteMode: string
device: string
ip: string
routeMaps:
- inOut: string
routeMapName: string
routeReflectorClient: false
sendCommunity: string
BgpIpv4UnicastNeighbor 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 BgpIpv4UnicastNeighbor 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 Ipv4Unicast 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 []BgpIpv4Unicast 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<BgpIpv4Unicast 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 BgpIpv4Unicast 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[BgpIpv4Unicast 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 BgpIpv4UnicastNeighbor 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 BgpIpv4UnicastNeighbor Resource
Get an existing BgpIpv4UnicastNeighbor 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?: BgpIpv4UnicastNeighborState, opts?: CustomResourceOptions): BgpIpv4UnicastNeighbor
@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[BgpIpv4UnicastNeighborRouteMapArgs]] = None,
route_reflector_client: Optional[bool] = None,
send_community: Optional[str] = None) -> BgpIpv4UnicastNeighbor
func GetBgpIpv4UnicastNeighbor(ctx *Context, name string, id IDInput, state *BgpIpv4UnicastNeighborState, opts ...ResourceOption) (*BgpIpv4UnicastNeighbor, error)
public static BgpIpv4UnicastNeighbor Get(string name, Input<string> id, BgpIpv4UnicastNeighborState? state, CustomResourceOptions? opts = null)
public static BgpIpv4UnicastNeighbor get(String name, Output<String> id, BgpIpv4UnicastNeighborState 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 Ipv4Unicast 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 []BgpIpv4Unicast 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<BgpIpv4Unicast 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 BgpIpv4Unicast 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[BgpIpv4Unicast 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
BgpIpv4UnicastNeighborRouteMap, BgpIpv4UnicastNeighborRouteMapArgs
- 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/bgpIpv4UnicastNeighbor:BgpIpv4UnicastNeighbor example "Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp=65000/address-family/no-vrf/ipv4=unicast/ipv4-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.