Skip to content

Commit

Permalink
Merge branch 'release/0.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
btorresgil committed Apr 18, 2016
2 parents aef07e6 + b9ddefd commit a896a3a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
History
=======

0.3.4
-----

Released: 2016-04-18

Status: Alpha

Added tag variable to the following objects:

* objects.AddressObject
* objects.AddressGroup

0.3.3
-----

Expand Down
2 changes: 1 addition & 1 deletion pandevice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

__author__ = 'Brian Torres-Gil'
__email__ = 'btorres-gil@paloaltonetworks.com'
__version__ = '0.3.3'
__version__ = '0.3.4'


import logging
Expand Down
4 changes: 4 additions & 0 deletions pandevice/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class AddressObject(PanObject):
type (str): Type of object: ip-netmask, ip-range, or fqdn (Default: ip-netmask)
value (str): IP address or other value of the object
description (str): Description of this object
tag (list): Administrative tags
"""

Expand All @@ -55,6 +56,7 @@ def variables(cls):
Var("(ip-netmask|ip-range|fqdn)", "type", default="ip-netmask"),
Var("{{type}}", "value"),
Var("description"),
Var("tag", vartype="member"),
)


Expand All @@ -67,6 +69,7 @@ class AddressGroup(PanObject):
dynamic_value (str): A dynamic Address Group with a tag string.
Example of tag string: "'linux' and 'server' and 'apache'"
description (str): Description of this group
tag (list): Administrative tags
"""

Expand All @@ -80,6 +83,7 @@ def variables(cls):
Var("static", "static_value", vartype="member"),
Var("dynamic/filter", "dynamic_value"),
Var("description"),
Var("tag", vartype="member"),
)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

setup(
name='pandevice',
version='0.3.3',
version='0.3.4',
description='Framework for interacting with Palo Alto Networks devices via API',
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.',
author='Brian Torres-Gil',
Expand Down

0 comments on commit a896a3a

Please sign in to comment.