Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Bgp asn notation #269

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions models/enterprise_sonic/bgp/deleted_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# bestpath med missing-as-worst confed
# bestpath compare-routerid
#!
#router bgp 10.2 vrf VrfCheck3
# log-neighbor-changes
# as-notation asdot+
#!
#router bgp 4
# router-id 10.2.2.4
# bestpath as-path ignore
Expand Down Expand Up @@ -54,6 +58,8 @@
# med:
# confed: True
# missing_as_worst: True
# - bgp_as: 10.2
# as_notation: "asdot+"
# state: deleted
# After state:
# ------------
Expand All @@ -66,6 +72,9 @@
# log-neighbor-changes
# bestpath compare-routerid
#!
#router bgp 655362 vrf VrfCheck3
# log-neighbor-changes
#!
#router bgp 4
# log-neighbor-changes
# bestpath compare-routerid
Expand Down
3 changes: 3 additions & 0 deletions models/enterprise_sonic/bgp/deleted_example_02.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# bestpath med missing-as-worst confed
# bestpath compare-routerid
#!
#router bgp 655362 vrf VrfCheck3
# log-neighbor-changes
#!
#router bgp 4
# router-id 10.2.2.4
# bestpath as-path ignore
Expand Down
8 changes: 8 additions & 0 deletions models/enterprise_sonic/bgp/merged_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# med:
# confed: True
# missing_as_worst: True
# - bgp_as: 655362
# log_neighbor_changes: True
# vrf_name: 'VrfCheck3'
# as_notation: "asdot+"
# state: merged
#
# After state:
Expand All @@ -56,6 +60,10 @@
# bestpath med missing-as-worst confed
# bestpath compare-routerid
#!
#router bgp 10.2 vrf VrfCheck3
# log-neighbor-changes
# as-notation asdot+
#!
#router bgp 4
# router-id 10.2.2.4
# bestpath as-path ignore
Expand Down
6 changes: 6 additions & 0 deletions models/enterprise_sonic/bgp/sonic_bgp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ DOCUMENTATION: |
bgp_as:
description:
- Specifies the BGP Autonomous System (AS) number to configure on the device.
- The range is from 1 to 4294967295 or asdot notation.
type: str
required: true
vrf_name:
Expand All @@ -46,6 +47,11 @@ DOCUMENTATION: |
description:
- Enable/disable logging neighbor up/down and reset reason.
type: bool
as_annotation:
description:
- Specify the AS number notation format
type: str
choices: ['asdot', 'asdot+']
bestpath:
description:
- Configures the BGP bestpath.
Expand Down
14 changes: 8 additions & 6 deletions models/enterprise_sonic/bgp_neighbors/sonic_bgp_neighbors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ DOCUMENTATION: |
peer_as:
description:
- Specifies remote AS number.
- The range is from 1 to 4294967295.
type: int
- The range is from 1 to 4294967295 or asdot notation.
type: str
peer_type:
description:
- Specifies type of bgp peer.
Expand Down Expand Up @@ -177,7 +177,8 @@ DOCUMENTATION: |
as:
description:
- Local autonomous system number.
type: int
- The range is from 1 to 4294967295 or asdot notation.
type: str
required: True
no_prepend:
description:
Expand Down Expand Up @@ -324,8 +325,8 @@ DOCUMENTATION: |
peer_as:
description:
- Specifies remote AS number.
- The range is from 1 to 4294967295.
type: int
- The range is from 1 to 4294967295 or asdot notation.
type: str
peer_type:
description:
- Specifies type of bgp peer.
Expand Down Expand Up @@ -450,7 +451,8 @@ DOCUMENTATION: |
as:
description:
- Local autonomous system number.
type: int
- The range is from 1 to 4294967295 or asdot notation.
type: str
required: True
no_prepend:
description:
Expand Down