This repository has been archived by the owner on Sep 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
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 #224 from napalm-automation/develop
Release 0.23.1
- Loading branch information
Showing
13 changed files
with
273 additions
and
205 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
setup( | ||
name="napalm-base", | ||
version='0.23.0', | ||
version='0.23.1', | ||
packages=find_packages(), | ||
author="David Barroso", | ||
author_email="[email protected]", | ||
|
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
ddt | ||
napalm-eos | ||
napalm-fortios | ||
napalm-ibm | ||
napalm-ios | ||
napalm-iosxr | ||
napalm-junos | ||
|
70 changes: 35 additions & 35 deletions
70
test/unit/validate/mocked_data/non_strict_fail/validate.yml
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,39 +1,39 @@ | ||
--- | ||
get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
list: | ||
- Vlan5 | ||
- Vlan666 | ||
hostname: n9k2 | ||
- get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
list: | ||
- Vlan5 | ||
- Vlan666 | ||
hostname: n9k2 | ||
|
||
get_bgp_neighbors: | ||
default: | ||
router_id: 192.6.6.6 | ||
peers: | ||
192.6.7.8: | ||
is_enabled: false | ||
192.0.2.3: | ||
is_enabled: false | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: 5 | ||
ipv6: | ||
sent_prefixes: 6 | ||
- get_bgp_neighbors: | ||
default: | ||
router_id: 192.6.6.6 | ||
peers: | ||
192.6.7.8: | ||
is_enabled: false | ||
192.0.2.3: | ||
is_enabled: false | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: 5 | ||
ipv6: | ||
sent_prefixes: 6 | ||
|
||
get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
- get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
|
||
get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "OSPF" | ||
- get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "OSPF" |
66 changes: 33 additions & 33 deletions
66
test/unit/validate/mocked_data/non_strict_pass/validate.yml
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,37 +1,37 @@ | ||
--- | ||
get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
list: | ||
- Vlan5 | ||
- Vlan100 | ||
hostname: n9k2 | ||
- get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
list: | ||
- Vlan5 | ||
- Vlan100 | ||
hostname: n9k2 | ||
|
||
get_bgp_neighbors: | ||
default: | ||
router_id: 192.0.2.2 | ||
peers: | ||
192.0.2.3: | ||
is_enabled: false | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: 5 | ||
ipv6: | ||
sent_prefixes: 2 | ||
- get_bgp_neighbors: | ||
default: | ||
router_id: 192.0.2.2 | ||
peers: | ||
192.0.2.3: | ||
is_enabled: false | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: 5 | ||
ipv6: | ||
sent_prefixes: 2 | ||
|
||
get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
- get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
|
||
get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "BGP" | ||
- get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "BGP" |
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,46 +1,46 @@ | ||
--- | ||
get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
_mode: strict | ||
list: | ||
- Vlan5 | ||
- Vlan100 | ||
hostname: n9k2 | ||
- get_facts: | ||
os_version: 7.0\(3\)I2\(2d\) | ||
interface_list: | ||
_mode: strict | ||
list: | ||
- Vlan5 | ||
- Vlan100 | ||
hostname: n9k2 | ||
|
||
get_bgp_neighbors: | ||
default: | ||
router_id: 192.0.2.2 | ||
peers: | ||
_mode: strict | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: ^[1-9] | ||
ipv6: | ||
sent_prefixes: ^[1-9] | ||
- get_bgp_neighbors: | ||
default: | ||
router_id: 192.0.2.2 | ||
peers: | ||
_mode: strict | ||
192.0.2.2: | ||
is_enabled: true | ||
address_family: | ||
ipv4: | ||
sent_prefixes: ^[1-9] | ||
ipv6: | ||
sent_prefixes: ^[1-9] | ||
|
||
get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "BGP" | ||
_mode: strict | ||
- get_route_to: | ||
_kwargs: | ||
destination: 185.155.180.192/26 | ||
"10.155.180.192/26": | ||
list: | ||
- next_hop: 10.155.180.22 | ||
outgoing_interface: "irb.0" | ||
protocol: "BGP" | ||
_mode: strict | ||
|
||
get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
- get_interfaces_ip: | ||
Ethernet2/1: | ||
ipv4: | ||
192.0.2.1: | ||
prefix_length: 30 | ||
|
||
ping: | ||
_kwargs: | ||
destination: 8.8.8.8 | ||
source: 192.168.1.1 | ||
success: | ||
packet_loss: 0 | ||
_mode: strict | ||
- ping: | ||
_kwargs: | ||
destination: 8.8.8.8 | ||
source: 192.168.1.1 | ||
success: | ||
packet_loss: 0 | ||
_mode: strict |
10 changes: 10 additions & 0 deletions
10
test/unit/validate/mocked_data/strict_pass/get_lldp_neighbors.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,10 @@ | ||
{ | ||
"ge-1/0/2": [{ | ||
"hostname": "fw1b.private.lon2", | ||
"port": "ethernet1/13" | ||
}], | ||
"ge-1/0/3": [{ | ||
"hostname": "border2.private.lon2", | ||
"port": "519" | ||
}] | ||
} |
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
Oops, something went wrong.