dellemc.enterprise_sonic.sonic_bgp_ext_communities – Manage BGP extended community-list and its parameters
Note
This plugin is part of the dellemc.enterprise_sonic collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.enterprise_sonic
.
To use it in a playbook, specify: dellemc.enterprise_sonic.sonic_bgp_ext_communities
.
New in version 1.0.0: of dellemc.enterprise_sonic
Synopsis
This module provides configuration management of BGP extcommunity-list for devices running Enterprise SONiC Distribution by Dell Technologies.
Note
This module has a corresponding action plugin.
Parameters
Parameter |
Comments |
---|---|
A list of ‘bgp_extcommunity_list’ configurations. |
|
Matches any/all of the the members. Choices:
|
|
Members of this BGP ext community list. |
|
Members of this BGP ext community list. Regular expression string can be given here. Applicable for expanded ext BGP community type. |
|
Members of this BGP ext community list. The format of route_origin is in either 0..65535:0..65535 or A.B.C.D:[1..65535] format. |
|
Members of this BGP ext community list. The format of route_target is in either 0..65535:0..65535 or A.B.C.D:[1..65535] format. |
|
Name of the BGP ext communitylist. |
|
Permits or denies this community. Choices:
|
|
Whether it is a standard or expanded ext community_list entry. Choices:
|
|
The state of the configuration after module completion. Choices:
|
Examples
# Using deleted
# Before state:
# -------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# rt:101:101
# rt:201:201
- name: Deletes a BGP ext community member
dellemc.enterprise_sonic.sonic_bgp_ext_communities:
config:
- name: test
members:
regex:
- 201:201
state: deleted
# After state:
# ------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# rt:101:101
#
# Using deleted
# Before state:
# -------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# 101
# Expanded extended community list test1: match: ANY
# 201
- name: Deletes a single BGP extended community
dellemc.enterprise_sonic.sonic_bgp_ext_communities:
config:
- name: test1
members:
state: deleted
# After state:
# ------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# 101
#
# Using deleted
# Before state:
# -------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# 101
# Expanded extended community list test1: match: ANY
# 201
- name: Deletes all BGP extended communities
dellemc.enterprise_sonic.sonic_bgp_ext_communities:
config:
state: deleted
# After state:
# ------------
#
# show bgp ext-community-list
#
# Using deleted
# Before state:
# -------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# 101
# Expanded extended community list test1: match: ANY
# 201
- name: Deletes all members in a single BGP extended community
dellemc.enterprise_sonic.sonic_bgp_ext_communities:
config:
- name: test1
members:
regex:
state: deleted
# After state:
# ------------
#
# show bgp ext-community-list
# Standard extended community list test: match: ANY
# 101
# Expanded extended community list test1: match: ANY
#
# Using merged
# Before state:
# -------------
#
# show bgp as-path-access-list
# AS path list test:
- name: Adds 909.* to test as-path list
dellemc.enterprise_sonic.sonic_bgp_as_paths:
config:
- name: test
members:
- 909.*
state: merged
# After state:
# ------------
#
# show bgp as-path-access-list
# AS path list test:
# members: 909.*
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The resulting configuration model invocation. Returned: when changed Sample: “The configuration returned will always be in the same format of the parameters above.\n” |
|
The configuration prior to the model invocation. Returned: always Sample: “The configuration returned will always be in the same format of the parameters above.\n” |
|
The set of commands pushed to the remote device. Returned: always Sample: [“command 1”, “command 2”, “command 3”] |
Authors
Kumaraguru Narayanan (@nkumaraguru)