Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 1.74 KB

metal_bgp_session.md

File metadata and controls

78 lines (48 loc) · 1.74 KB

metal_bgp_session

Manage BGP sessions in Equinix Metal.Create, update or delete BGP session. To look up an existing session, pass only the id attribute.

Examples

- name: Start first test bgp session
  hosts: localhost
  tasks:
  - equinix.cloud.metal_bgp_session:
      device_id: 8ea9837a-6d19-4607-b166-f7f7bb04b022
      address_family: ipv6
      default_route: true
- name: Delete bgp session
  hosts: localhost
  tasks:
  - equinix.cloud.metal_bgp_session:
      id: 1273edef-39af-4df0-85bb-02a847a484d1
      state: absent

Parameters

Field Type Required Description
id str Optional UUID of the BGP session to look up
device_id str Optional Device ID for the BGP session
address_family str Optional BGP session address family, "ipv4" or "ipv6"
default_route bool Optional Boolean flag to set the default route policy. False by default.

Return Values

Sample Responses for metal_bgp_session

{
  "address_family": "ipv4",
  "default_route": true,
  "device_id": "2066d33e-7c43-4d78-87a3-aaa434913f7f",
  "id": "fc2d43e6-d606-47f7-9611-9d77aee443b5"
}
{
  "address_family": "ipv6",
  "default_route": true,
  "device_id": "bfab58c0-0723-49aa-a64e-6caf1b8ea2e2",
  "id": "277d4a7a-82dd-4e7c-bf79-8a1de6882982"
}