Skip to content

Commit

Permalink
Refactor(eos_cli_config_gen): Remove primary key of system.control_pl…
Browse files Browse the repository at this point in the history
…ane.ipv4/6_access_group and make vrf key unique
  • Loading branch information
Vibhu-gslab committed Sep 17, 2024
1 parent 7f41eee commit c6ad676
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ interface Management1
| -------- | --- | ------------|
| IPv4 | default | acl4_1 |
| IPv4 | red | acl4_2 |
| IPv4 | red_1 | acl4_2 |
| IPv4 | default | acl4_3 |
| IPv6 | default | acl6_1 |
| IPv6 | blue | acl6_2 |
| IPv6 | blue_1 | acl6_2 |
| IPv6 | default | acl6_3 |

#### System Control-Plane Device Configuration
Expand All @@ -65,9 +67,11 @@ system control-plane
tcp mss ceiling ipv4 1344 ipv6 1366
ip access-group acl4_1 in
ip access-group acl4_2 vrf red in
ip access-group acl4_2 vrf red_1 in
ip access-group acl4_3 vrf default in
ipv6 access-group acl6_1 in
ipv6 access-group acl6_2 vrf blue in
ipv6 access-group acl6_2 vrf blue_1 in
ipv6 access-group acl6_3 vrf default in
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ system control-plane
tcp mss ceiling ipv4 1344 ipv6 1366
ip access-group acl4_1 in
ip access-group acl4_2 vrf red in
ip access-group acl4_2 vrf red_1 in
ip access-group acl4_3 vrf default in
ipv6 access-group acl6_1 in
ipv6 access-group acl6_2 vrf blue in
ipv6 access-group acl6_2 vrf blue_1 in
ipv6 access-group acl6_3 vrf default in
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ system:
- acl_name: "acl4_1"
- acl_name: "acl4_2"
vrf: red
- acl_name: "acl4_2"
vrf: red_1
- acl_name: "acl4_3"
vrf: default
ipv6_access_groups:
- acl_name: "acl6_1"
- acl_name: "acl6_2"
vrf: blue
- acl_name: "acl6_2"
vrf: blue_1
- acl_name: "acl6_3"
vrf: default
l1:
Expand Down

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

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 @@ -24,24 +24,28 @@ keys:
description: Segment size.
ipv4_access_groups:
type: list
primary_key: acl_name
unique_keys:
- vrf
items:
type: dict
keys:
acl_name:
type: str
required: true
vrf:
type: str
convert_types:
- int
ipv6_access_groups:
type: list
primary_key: acl_name
unique_keys:
- vrf
items:
type: dict
keys:
acl_name:
type: str
required: true
vrf:
type: str
convert_types:
Expand Down

0 comments on commit c6ad676

Please sign in to comment.