Skip to content

Commit

Permalink
fix(panos.device.SystemSettings): Add support for proxy config (#450)
Browse files Browse the repository at this point in the history
fixes #230
  • Loading branch information
shinmog committed May 11, 2022
1 parent 130f9a4 commit ef8c9fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions panos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ class SystemSettings(VersionedPanObject):
dhcp_send_client_id (bool): (DHCP Mngt) Send Client ID
accept_dhcp_hostname (bool): (DHCP Mngt) Accept DHCP hostname
accept_dhcp_domain (bool): (DHCP Mngt) Accept DHCP domain name
proxy_server (str): Secure proxy server to use
proxy_port (int): Port for secure proxy server
proxy_username (str): Secure proxy user name to use
proxy_password (str): Secure proxy password to use
"""

Expand Down Expand Up @@ -379,6 +383,16 @@ def _setup(self):
path="type/dhcp-client/accept-dhcp-domain",
)
)
params.append(VersionedParamPath("proxy_server", path="secure-proxy-server"))
params.append(
VersionedParamPath("proxy_port", vartype="int", path="secure-proxy-port")
)
params.append(VersionedParamPath("proxy_username", path="secure-proxy-user"))
params.append(
VersionedParamPath(
"proxy_password", vartype="encrypted", path="secure-proxy-password"
)
)

self._params = tuple(params)

Expand Down

0 comments on commit ef8c9fc

Please sign in to comment.