Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(panos.device.SystemSettings): Add support for proxy config #450

Merged
merged 1 commit into from
May 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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