Skip to content

Commit

Permalink
Refactor(eos_cli_config_gen): Deprecate community_lists data model (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
laxmikantchintakindi authored Aug 28, 2024
1 parent 7cd121d commit 92118f7
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [Filters](#filters)
- [Community-lists](#community-lists)
- [IP Community-lists](#ip-community-lists-1)

## Management
Expand Down Expand Up @@ -38,23 +37,6 @@ interface Management1

## Filters

### Community-lists

#### Community-lists Summary

| Name | Action |
| -------- | ------ |
| TEST1 | permit 1000:1000 |
| TEST2 | permit 2000:3000 |

#### Community-lists Device Configuration

```eos
!
ip community-list TEST1 permit 1000:1000
ip community-list TEST2 permit 2000:3000
```

### IP Community-lists

#### IP Community-lists Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ interface Management1
vrf MGMT
ip address 10.73.255.122/24
!
ip community-list TEST1 permit 1000:1000
ip community-list TEST2 permit 2000:3000
!
ip community-list IP_CL_TEST1 permit 1001:1001 1002:1002
ip community-list IP_CL_TEST1 deny 1010:1010
ip community-list regexp IP_CL_TEST1 permit 20:*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
### IP community lists ###

community_lists:
- name: TEST1
action: "permit 1000:1000"
- name: TEST2
action: "permit 2000:3000"

ip_community_lists:
- name: IP_CL_TEST1
entries:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- [Interfaces](#interfaces)
- [Ethernet Interfaces](#ethernet-interfaces)
- [Port-Channel Interfaces](#port-channel-interfaces)
- [Filters](#filters)
- [Community-lists](#community-lists)

## Interfaces

Expand Down Expand Up @@ -135,3 +137,22 @@ interface Port-Channel5
switchport vlan translation out 25 49
switchport vlan translation 34 60
```

## Filters

### Community-lists

#### Community-lists Summary

| Name | Action |
| -------- | ------ |
| TEST1 | permit 1000:1000 |
| TEST2 | permit 2000:3000 |

#### Community-lists Device Configuration

```eos
!
ip community-list TEST1 permit 1000:1000
ip community-list TEST2 permit 2000:3000
```
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ interface Ethernet4
switchport
switchport trunk private-vlan secondary
switchport pvlan mapping 2,3,4
!
ip community-list TEST1 permit 1000:1000
ip community-list TEST2 permit 2000:3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
community_lists:
- name: TEST1
action: "permit 1000:1000"
- name: TEST2
action: "permit 2000:3000"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## Filters
{## Community-lists #}
{% include 'documentation/community-lists.j2' %}
{## Community-lists, improved data model #}
{## IP Community Lists #}
{% include 'documentation/ip-community-lists.j2' %}
{## Peer Filters #}
{% include 'documentation/peer-filters.j2' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
{% include 'eos/priority-flow-control.j2' %}
{# Community-lists #}
{% include 'eos/community-lists.j2' %}
{# Community-lists, improved data model #}
{# IP Community Lists #}
{% include 'eos/ip-community-lists.j2' %}
{# IP Extended Community Lists #}
{% include 'eos/ip-extcommunity-lists.j2' %}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ keys:
type: list
primary_key: name
display_name: Community Lists (legacy model)
deprecation:
warning: true
remove_in_version: 6.0.0
new_key: ip_community_lists
items:
type: dict
keys:
Expand Down

0 comments on commit 92118f7

Please sign in to comment.