-
Notifications
You must be signed in to change notification settings - Fork 784
Add aethra_atosnt show ip routemap work #2295
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
Open
ppetilli
wants to merge
7
commits into
networktocode:master
Choose a base branch
from
ppetilli:aethra_atosnt_show_ip_routemap_work
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1da7909
Add aethra_atosnt show ip routemap work
140ac5e
Add aethra_atosnt in test_index_order.py
5277a93
Matching white space in List of Maps
mjbear c85c7f4
Match all line patterns before Maps transition
mjbear 2b23da4
fix: correcting index to not allow any short words for aethra_atosnt_…
5b683db
feat: add support for additional classifier 'cust_class01' in routema…
ppetilli ec2c6b1
Add comment for classifier regex
mjbear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ntc_templates/templates/aethra_atosnt_show_ip_routemap_work.textfsm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| Value Filldown MAP_NAME (\S+) | ||
| Value Required ACTION (permit|deny) | ||
| Value Required SEQUENCE (\d+) | ||
| Value TYPE (\S+) | ||
| Value VALUE (.+) | ||
|
|
||
| Start | ||
| ^Show\s+of\s+\S+\s+ip\s+routemap$$ | ||
| ^LIST\s+OF\s+(EXT-)?COMMUNITY-SETS$$ | ||
| ^COMMUNITY-SET\s+NAME$$ | ||
| ^\S+\s+\d+:\d+$$ | ||
| ^Empty\s+list$$ | ||
| ^LIST\s+OF\s+CLASSIFIERS$$ | ||
| # classifier names | ||
| ^\S{1,16}$$ | ||
| ^\s+\S+\s+\d+\s+\S+\s+\S+$$ | ||
| ^LIST\s+OF\s+MAPS$$ -> Maps | ||
| ^. -> Error | ||
|
|
||
| Maps | ||
| ^${MAP_NAME}\s*$$ | ||
| ^\s+${ACTION}\s+${SEQUENCE}\s+${TYPE}\s+${VALUE}\s*$$ -> Record | ||
| ^\s*$$ | ||
| ^. -> Error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/aethra_atosnt/show_ip_routemap_work/aethra_atosnt_show_ip_routemap_work.raw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| Show of SOMEDEVICE-73493 ip routemap | ||
| LIST OF COMMUNITY-SETS | ||
| COMMUNITY-SET NAME | ||
| LOCALPREF_135 1111:135 | ||
|
|
||
| LIST OF EXT-COMMUNITY-SETS | ||
| Empty list | ||
|
|
||
| LIST OF CLASSIFIERS | ||
| adver_subs | ||
|
mjbear marked this conversation as resolved.
|
||
| permit 10 match-ip 1.1.1.1/29 | ||
|
mjbear marked this conversation as resolved.
|
||
| cust_class01 | ||
| permit 10 match-ip 10.10.10.8/29 | ||
|
|
||
| LIST OF MAPS | ||
| ACT_OUT | ||
| permit 10 CLASSIFIER adver_subs | ||
| permit 20 CLASSIFIER cust_class01 | ||
| LTE_SBY_OUT | ||
| permit 10 CLASSIFIER adver_subs | ||
| permit 10 ACTION set-community additive 1111:135 | ||
| TEST_BLOCK | ||
| deny 10 CLASSIFIER adver_subs | ||
27 changes: 27 additions & 0 deletions
27
tests/aethra_atosnt/show_ip_routemap_work/aethra_atosnt_show_ip_routemap_work.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| parsed_sample: | ||
| - action: "permit" | ||
| map_name: "ACT_OUT" | ||
| sequence: "10" | ||
| type: "CLASSIFIER" | ||
| value: "adver_subs" | ||
| - action: "permit" | ||
| map_name: "ACT_OUT" | ||
| sequence: "20" | ||
| type: "CLASSIFIER" | ||
| value: "cust_class01" | ||
| - action: "permit" | ||
| map_name: "LTE_SBY_OUT" | ||
| sequence: "10" | ||
| type: "CLASSIFIER" | ||
| value: "adver_subs" | ||
| - action: "permit" | ||
| map_name: "LTE_SBY_OUT" | ||
| sequence: "10" | ||
| type: "ACTION" | ||
| value: "set-community additive 1111:135" | ||
| - action: "deny" | ||
| map_name: "TEST_BLOCK" | ||
| sequence: "10" | ||
| type: "CLASSIFIER" | ||
| value: "adver_subs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
| OS_CHOICES = [ | ||
| "a10", | ||
| "aethra_atosnt", | ||
| "alcatel_aos", | ||
| "alcatel_sros", | ||
| "allied_telesis_awplus", | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.