Skip to content

Commit d35e285

Browse files
committed
Merge branch 'release/0.11.1'
2 parents cdb6787 + 86242b8 commit d35e285

File tree

5 files changed

+42
-21
lines changed

5 files changed

+42
-21
lines changed

HISTORY.rst

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

6+
0.11.1
7+
------
8+
9+
Released: 2019-06-10
10+
11+
Status: Alpha
12+
13+
- Changed various log forwarding class names
14+
- Fixed numerous docstrings
15+
- Fixed some parameter paths
16+
617
0.11.0
718
-----
819

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.11.0'
26+
__version__ = '0.11.1'
2727

2828

2929
import logging

pandevice/device.py

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,19 @@ def _setup(self):
513513

514514

515515
class SnmpServerProfile(VersionedPanObject):
516+
"""SNMP server profile.
517+
518+
Args:
519+
name (str): The name
520+
version (str): SNMP version. Valid values are v2c (default) or
521+
v3.
522+
523+
"""
516524
ROOT = Root.VSYS
517525
SUFFIX = ENTRY
518526
CHILDTYPES = (
519-
"device.SnmpV2cServerProfile",
520-
"device.SnmpV3ServerProfile",
527+
"device.SnmpV2cServer",
528+
"device.SnmpV3Server",
521529
)
522530

523531
def _setup(self):
@@ -534,8 +542,8 @@ def _setup(self):
534542
self._params = tuple(params)
535543

536544

537-
class SnmpV2cServerProfile(VersionedPanObject):
538-
"""SNMP V2C server profile.
545+
class SnmpV2cServer(VersionedPanObject):
546+
"""SNMP V2C server in a server.
539547
540548
Args:
541549
name (str): The name
@@ -561,8 +569,8 @@ def _setup(self):
561569
self._params = tuple(params)
562570

563571

564-
class SnmpV3ServerProfile(VersionedPanObject):
565-
"""SNMP V2C server profile.
572+
class SnmpV3Server(VersionedPanObject):
573+
"""SNMP V3 server.
566574
567575
Args:
568576
name (str): The name
@@ -704,8 +712,8 @@ class EmailServer(VersionedPanObject):
704712
display_name (str): Display name
705713
from (str): From email address
706714
to (str): To email address
707-
additional_recipient (str): Additional destination email address
708-
email_gateway (str): IP address or FQDN of SMTP gateway to use
715+
also_to (str): Additional destination email address
716+
email_gateway (str): IP address or FQDN of email gateway to use
709717
710718
"""
711719
ROOT = Root.VSYS
@@ -725,7 +733,7 @@ def _setup(self):
725733
params.append(VersionedParamPath(
726734
'to', path='to'))
727735
params.append(VersionedParamPath(
728-
'additional_recipient', path='and-also-to'))
736+
'also_to', path='and-also-to'))
729737
params.append(VersionedParamPath(
730738
'email_gateway', path='gateway'))
731739

@@ -917,12 +925,12 @@ class HttpServerProfile(VersionedPanObject):
917925
auth_name (str): Name for custom auth format
918926
auth_uri_format (str): URI format for custom auth format
919927
auth_payload (str): Payload for custom auth format
920-
sctp_name (str): Name for custom SCTP format
921-
sctp_uri_format (str): URI format for custom SCTP format
922-
sctp_payload (str): Payload for custom SCTP format
923-
iptag_name (str): Name for custom IP tag format
924-
iptag_uri_format (str): URI format for custom IP tag format
925-
iptag_payload (str): Payload for custom IP tag format
928+
sctp_name (str): (PAN-OS 8.1+) Name for custom SCTP format
929+
sctp_uri_format (str): (PAN-OS 8.1+) URI format for custom SCTP format
930+
sctp_payload (str): (PAN-OS 8.1+) Payload for custom SCTP format
931+
iptag_name (str): (PAN-OS 9.0+) Name for custom IP tag format
932+
iptag_uri_format (str): (PAN-OS 9.0+) URI format for custom IP tag format
933+
iptag_payload (str): (PAN-OS 9.0+) Payload for custom IP tag format
926934
927935
"""
928936
ROOT = Root.VSYS
@@ -1081,11 +1089,12 @@ class HttpServer(VersionedPanObject):
10811089
name (str): The name
10821090
address (str): IP address or FQDN of HTTP server to use
10831091
protocol (str): HTTPS (default) or HTTP
1084-
port (int): Port number
1085-
tls_version (str): (PAN-OS 9.0+) TLS handshake protocol version
1092+
port (int): Port number (default: 443).
1093+
tls_version (str): (PAN-OS 9.0+) TLS handshake protocol version. Valid
1094+
values are 1.0, 1.1, or 1.2.
10861095
certificate_profile (str): (PAN-OS 9.0+) Certificate profile for
10871096
validating server certificate
1088-
http_method (str): HTTP method to use
1097+
http_method (str): HTTP method to use (default: POST).
10891098
username (str): Username for basic HTTP auth
10901099
password (str): Password for basic HTTP auth
10911100

pandevice/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ def _setup(self):
697697
'timeout', exclude=True))
698698
params[-1].add_profile(
699699
'9.0.0',
700-
vartype='int', path='timeout')
700+
vartype='int', path='type/{action_type}/timeout',
701+
condition={'action_type': 'tagging'})
701702

702703
self._params = tuple(params)

setup.py

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

2424
setup_kwargs = dict(
2525
name='pandevice',
26-
version='0.11.0',
26+
version='0.11.1',
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)