Skip to content

Commit 2a70d86

Browse files
committed
Merge branch 'release/0.4.0'
2 parents 6b091b9 + 09b750a commit 2a70d86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7119
-1332
lines changed

.flake8.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[flake8]
2+
#ignore = E501
3+
max-line-length = 120
4+
max-complexity = 20
5+
exclude =
6+
# No need to traverse our git directory
7+
.git,
8+
# There's no value in checking cache directories
9+
__pycache__,
10+
# The conf file is mostly autogenerated, ignore it
11+
docs/conf.py,
12+
# The old directory contains Flake8 2.0
13+
old,
14+
# This contains our built documentation
15+
build,
16+
# This contains builds of flake8 that we don't want to check
17+
dist,
18+
# The tox directory
19+
.tox

.gitignore

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,73 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
13
*.py[cod]
4+
*$py.class
25

36
# C extensions
47
*.so
58

6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
develop-eggs
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
1724
.installed.cfg
18-
lib
19-
lib64
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
2032

2133
# Installer logs
2234
pip-log.txt
35+
pip-delete-this-directory.txt
2336

2437
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
2540
.coverage
26-
.tox
41+
.coverage.*
42+
.cache
2743
nosetests.xml
28-
htmlcov
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
2947

3048
# Translations
3149
*.mo
50+
*.pot
51+
52+
# Sphinx documentation
53+
docs/_build/
54+
55+
# PyBuilder
56+
target/
57+
58+
# IPython Notebook
59+
.ipynb_checkpoints
3260

33-
# Mr Developer
34-
.mr.developer.cfg
35-
.project
36-
.pydevproject
61+
# pyenv
62+
.python-version
3763

38-
# Complexity
39-
output/*.html
40-
output/*/index.html
64+
# dotenv
65+
.env
4166

42-
# Sphinx
43-
docs/_build
67+
# virtualenv
68+
.venv/
69+
venv/
70+
ENV/
4471

4572
# PyCharm / IntelliJ
4673
.idea

.hound.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python:
2+
enabled: true
3+
config_file: .flake8.ini

AUTHORS.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ is open to whoever wants to implement it.
3030
Implement Features
3131
~~~~~~~~~~~~~~~~~~
3232

33-
Look through the GitHub issues for features. Anything tagged with "feature"
33+
Look through the GitHub issues for features. Anything tagged with "enhancement"
3434
is open to whoever wants to implement it.
3535

3636
Write Documentation
@@ -108,4 +108,4 @@ Tips
108108

109109
To run a subset of tests::
110110

111-
$ python -m unittest tests.test_pandevice
111+
$ python -m unittest tests.test_pandevice

HISTORY.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,55 @@
33
History
44
=======
55

6+
0.4.0
7+
-----
8+
9+
Released: 2017-03-17
10+
11+
Status: Alpha
12+
13+
- Now supports PAN-OS 7.0, 7.1, and 8.0
14+
- Support added for the following Firewall/Panorama features:
15+
16+
- NAT
17+
- OSPF
18+
- Applications
19+
- Services
20+
- Interface Management Profiles
21+
22+
- Support for some predefined objects (such as applications from content packs)
23+
- Convenience methods for common licensing functions
24+
- New introspective method to describe current state of object: about()
25+
26+
27+
Breaking-changes in this version, please update your scripts to account for the following:
28+
29+
- `pandevice()` method changed to `nearest_pandevice()`
30+
- Arguments of `refresh()` method are in a different order for better consistency
31+
32+
33+
Full list of new PanObjects:
34+
35+
- NatRule
36+
- ServiceObject
37+
- ServiceGroup
38+
- ApplicationObject
39+
- ApplicationGroup
40+
- ApplicationFilter
41+
- ApplicationContainer
42+
- RedistributionProfile
43+
- Ospf
44+
- OspfArea
45+
- OspfRange
46+
- OspfNssaExternalRange
47+
- OspfAreaInterface
48+
- OspfNeighbor
49+
- OspfAuthProfile
50+
- OspfAuthProfileMd5
51+
- OspfExportRules
52+
- ManagementProfile
53+
54+
655
0.3.5
756
-----
857

LICENSE

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
The Palo Alto Networks Device Framework (pandevice) is distributed
2-
under the ICS License:
1+
Distributed under ISC license:
32

4-
http://opensource.org/licenses/ISC
5-
6-
Copyright (c) 2014, Palo Alto Networks
3+
Copyright (c) 2014-2016, Palo Alto Networks Inc.
74

85
Permission to use, copy, modify, and/or distribute this software for any
96
purpose with or without fee is hereby granted, provided that the above
107
copyright notice and this permission notice appear in all copies.
118

129
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1310
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
11+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
12+
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
14+
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
15+
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

README.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Networks devices (including Next-generation Firewalls and Panorama) using the
77
device API that is object oriented and conceptually similar to interaction
88
with the device via the GUI or CLI.
99

10+
* Documentation: http://pandevice.readthedocs.io
11+
* Overview: http://paloaltonetworks.github.io/pandevice
1012
* Free software: ISC License
11-
* Documentation: http://pandevice.readthedocs.org
1213

1314
-----
1415

@@ -96,16 +97,30 @@ Some operational commands have methods to refresh the variables in an object::
9697
# populates the version, serial, and model variables from the live device
9798
fw.refresh_system_info()
9899

100+
See more examples in the `Usage Guide`_.
101+
102+
103+
Contributors
104+
------------
105+
106+
- Brian Torres-Gil - `github <https://github.com/btorresgil>`__
107+
- Garfield Freeman - `github <https://github.com/shinmog>`__
108+
- John Anderson - `github <https://github.com/lampwins>`__
109+
110+
Thank you to Kevin Steves, creator of the pan-python library:
111+
https://github.com/kevinsteves/pan-python
112+
99113

100114
.. _pan-python: http://github.com/kevinsteves/pan-python
101-
.. _Configuration Tree: http://pandevice.readthedocs.org/en/latest/configtree.html
115+
.. _Configuration Tree: http://pandevice.readthedocs.io/en/latest/configtree.html
116+
.. _Usage Guide: http://pandevice.readthedocs.io/en/latest/usage.html
102117

103118
.. |pypi| image:: https://img.shields.io/pypi/v/pandevice.svg
104119
:target: https://pypi.python.org/pypi/pandevice
105120
:alt: Latest version released on PyPi
106121

107122
.. |rtd| image:: https://img.shields.io/badge/docs-latest-brightgreen.svg
108-
:target: http://pandevice.readthedocs.org/en/latest/?badge=latest
123+
:target: http://pandevice.readthedocs.io/en/latest/?badge=latest
109124
:alt: Documentation Status
110125

111126
.. |coverage| image:: https://img.shields.io/coveralls/PaloAltoNetworks/pandevice/master.svg?label=coverage

docs/_static/.gitkeep

Whitespace-only changes.

docs/authors.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)