Skip to content

Commit

Permalink
PaloAltoNetworks#347 - Adding protocol to EmailServer class
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Steiner <[email protected]>
  • Loading branch information
ntwrkguru committed Jun 7, 2021
1 parent 1bc2ccb commit e15f884
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions panos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ class EmailServer(VersionedPanObject):
to (str): To email address
also_to (str): Additional destination email address
email_gateway (str): IP address or FQDN of email gateway to use
protocol (str): SMTP for clear-text or TLS for encrypted
"""

Expand All @@ -1050,6 +1051,7 @@ def _setup(self):
params.append(VersionedParamPath("to", path="to"))
params.append(VersionedParamPath("also_to", path="and-also-to"))
params.append(VersionedParamPath("email_gateway", path="gateway"))
params.append(VersionedParamPath("protocol", path="protocol"))

self._params = tuple(params)

Expand Down Expand Up @@ -1126,7 +1128,11 @@ def _setup(self):
)
)
params.append(
VersionedParamPath("disabled", vartype="yesno", path="disabled",),
VersionedParamPath(
"disabled",
vartype="yesno",
path="disabled",
),
)

self._params = tuple(params)
Expand Down Expand Up @@ -1272,7 +1278,10 @@ def _setup(self):
"facility",
default="LOG_USER",
path="facility",
values=["LOG_USER",] + ["LOG_LOCAL{0}".format(x) for x in range(8)],
values=[
"LOG_USER",
]
+ ["LOG_LOCAL{0}".format(x) for x in range(8)],
)
)

Expand Down

0 comments on commit e15f884

Please sign in to comment.