From ef8c9fc58d2d4f68e2c9d11f7dc80695318ab42b Mon Sep 17 00:00:00 2001 From: Garfield Lee Freeman Date: Wed, 11 May 2022 11:51:18 -0700 Subject: [PATCH] fix(panos.device.SystemSettings): Add support for proxy config (#450) fixes #230 --- panos/device.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/panos/device.py b/panos/device.py index d3b6f2a2..64435d83 100644 --- a/panos/device.py +++ b/panos/device.py @@ -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 """ @@ -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)