Skip to content

Commit 97c72ca

Browse files
committed
Merge branch 'release/0.8.0'
2 parents 6850145 + 4628688 commit 97c72ca

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

HISTORY.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@
33
History
44
=======
55

6-
0.7.1
6+
0.8.1
77
-----
88

99
Released: Pending
1010

1111
Status: Alpha
1212

13+
0.8.0
14+
-----
15+
16+
Released: 2019-03-25
17+
18+
Status: Alpha
19+
20+
- Added flag to control VsysOperation's filtering on `refreshall()`
21+
- Fixed virtual router's childtypes - `RedistributionProfileIPv6` now shows up
22+
1323
0.7.0
1424
-----
1525

pandevice/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
__author__ = 'Palo Alto Networks'
2525
__email__ = '[email protected]'
26-
__version__ = '0.7.0'
26+
__version__ = '0.8.0'
2727

2828

2929
import logging

pandevice/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,17 +3093,21 @@ def set_vsys(self, vsys_id, refresh=False, update=False,
30933093

30943094
@classmethod
30953095
def refreshall(cls, parent, running_config=False, add=True,
3096-
exceptions=False, name_only=False):
3096+
exceptions=False, name_only=False,
3097+
matching_vsys=True):
30973098
instances = super(VsysOperations, cls).refreshall(
30983099
parent, running_config, add=False,
30993100
exceptions=exceptions, name_only=name_only)
31003101

3102+
if not matching_vsys:
3103+
return instances
3104+
31013105
# Versioned objects need a PanDevice to get the version from, so
31023106
# set the child's parent before accessing XPATH.
31033107
class_instance = cls()
31043108
class_instance.parent = parent
31053109

3106-
# Filter out instances that are not in this vlan's imports
3110+
# Filter out instances that are not in this vsys's imports
31073111
device = parent.nearest_pandevice()
31083112
api_action = device.xapi.show if running_config else device.xapi.get
31093113
if parent.vsys != "shared" and parent.vsys is not None and class_instance.XPATH_IMPORT is not None:

pandevice/network.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,7 @@ class VirtualRouter(VsysOperations):
14361436
"network.StaticRoute",
14371437
"network.StaticRouteV6",
14381438
"network.RedistributionProfile",
1439+
"network.RedistributionProfileIPv6",
14391440
"network.Ospf",
14401441
"network.Bgp",
14411442
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
setup(
2525
name='pandevice',
26-
version='0.7.0',
26+
version='0.8.0',
2727
description='Framework for interacting with Palo Alto Networks devices via API',
2828
long_description='The Palo Alto Networks Device Framework is a way to interact with Palo Alto Networks devices (including Next-generation Firewalls and Panorama) using the device API that is object oriented and conceptually similar to interaction with the device via the GUI or CLI.',
2929
author='Palo Alto Networks',

0 commit comments

Comments
 (0)