Skip to content

Commit ef8c9fc

Browse files
authored
fix(panos.device.SystemSettings): Add support for proxy config (#450)
fixes #230
1 parent 130f9a4 commit ef8c9fc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

panos/device.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ class SystemSettings(VersionedPanObject):
299299
dhcp_send_client_id (bool): (DHCP Mngt) Send Client ID
300300
accept_dhcp_hostname (bool): (DHCP Mngt) Accept DHCP hostname
301301
accept_dhcp_domain (bool): (DHCP Mngt) Accept DHCP domain name
302+
proxy_server (str): Secure proxy server to use
303+
proxy_port (int): Port for secure proxy server
304+
proxy_username (str): Secure proxy user name to use
305+
proxy_password (str): Secure proxy password to use
302306
303307
"""
304308

@@ -379,6 +383,16 @@ def _setup(self):
379383
path="type/dhcp-client/accept-dhcp-domain",
380384
)
381385
)
386+
params.append(VersionedParamPath("proxy_server", path="secure-proxy-server"))
387+
params.append(
388+
VersionedParamPath("proxy_port", vartype="int", path="secure-proxy-port")
389+
)
390+
params.append(VersionedParamPath("proxy_username", path="secure-proxy-user"))
391+
params.append(
392+
VersionedParamPath(
393+
"proxy_password", vartype="encrypted", path="secure-proxy-password"
394+
)
395+
)
382396

383397
self._params = tuple(params)
384398

0 commit comments

Comments
 (0)