This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from napalm-automation/develop
Release 0.5.2
- Loading branch information
Showing
11 changed files
with
87 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,16 @@ | ||
{%- for user_name, user_details in users.items() %} | ||
{%- if user_details %} | ||
{%- if user_details.get('password') %} | ||
username {{user_name}} nopassword | ||
{%- if user_details.get('level') %} | ||
no username {{user_name}} privilege {{user_details.level}} | ||
{%- endif %} | ||
{%- if user_details.get('sshkeys') %} | ||
{%- for sshkey in user_details.sshkeys %} | ||
no username {{user_name}} sshkey {{ sshkey }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- else %} | ||
no username {{user_name}} | ||
{%- endif %} | ||
{%- endfor %} |
This file contains 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,15 @@ | ||
{%- for user_name, user_details in users.items() %} | ||
{%- if user_details.get('password') %} | ||
username {{ user_name }} secret {{ user_details.password }} | ||
{%- else %} | ||
username {{ user_name }} nopassword | ||
{%- endif %} | ||
{%- if user_details.get('level') %} | ||
username {{ user_name }} privilege {{ user_details.level }} | ||
{%- endif %} | ||
{%- if user_details.get('sshkeys') %} | ||
{%- for sshkey in user_details.sshkeys %} | ||
username {{ user_name }} sshkey {{ sshkey }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endfor %} |
This file contains 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
2 changes: 1 addition & 1 deletion
2
test/unit/mocked_data/test_get_snmp_information/normal/expected_result.json
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"community": {"tryagain": {"mode": "", "acl": ""}, "hackme": {"mode": "ro", "acl": "ifyoucan"}}, "contact": "noc@cloudflare.com", "location": "Marseille, France", "chassis_id": "edge02.mrs01"} | ||
{"community": {"basic": {"mode": "ro", "acl": ""}, "private": {"mode": "rw", "acl": ""}, "test-view": {"mode": "ro", "acl": ""}, "test-ipv4-acl": {"mode": "ro", "acl": "ipv4-ext-acl"}, "test-num-acl": {"mode": "ro", "acl": "11"}, "complex": {"mode": "ro", "acl": "ipv4-std-acl"}}, "contact": "noc@cloudflare.com", "location": "Marseille, France", "chassis_id": "edge02.mrs01"} |
5 changes: 0 additions & 5 deletions
5
...cked_data/test_get_snmp_information/normal/show_running_config___section_snmp_server.text
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...test_get_snmp_information/normal/show_running_config___section_snmp_server_community.text
This file contains 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,6 @@ | ||
snmp-server community basic ro | ||
snmp-server community private rw | ||
snmp-server community test-view view view-name ro | ||
snmp-server community test-ipv4-acl ro ipv4-ext-acl | ||
snmp-server community test-num-acl ro 11 | ||
snmp-server community complex ro ipv6 ipv6-acl ipv4-std-acl |
3 changes: 3 additions & 0 deletions
3
test/unit/mocked_data/test_get_snmp_information/normal/show_snmp_chassis.json
This file contains 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,3 @@ | ||
{ | ||
"chassisId": "edge02.mrs01" | ||
} |
3 changes: 3 additions & 0 deletions
3
test/unit/mocked_data/test_get_snmp_information/normal/show_snmp_contact.json
This file contains 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,3 @@ | ||
{ | ||
"contact": "noc@cloudflare.com" | ||
} |
3 changes: 3 additions & 0 deletions
3
test/unit/mocked_data/test_get_snmp_information/normal/show_snmp_location.json
This file contains 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,3 @@ | ||
{ | ||
"location": "Marseille, France" | ||
} |