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

Implementation of a TS Agent class for UserID #443

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Changes from 5 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
27 changes: 27 additions & 0 deletions panos/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,3 +1274,30 @@ def _setup(self):
)

self._params = tuple(params)

class TerminalServerAgent(VersionedPanObject):
"""Terminal Server Agent Object.
Component of UserID to map users to traffic on terminal servers.

Args:
name (str): Name of Terminal Server Agent Client
disabled (bool): Whether TS Agent is enabled
host (str): IP address of the host where Terminal Server Agent is installed
port (str): Port of the Terminal Server Agent
"""
ROOT = Root.VSYS
SUFFIX = ENTRY

def _setup(self):
# xpaths
self._xpaths.add_profile(value="/ts-agent")

# params
params = []

params.append(VersionedParamPath("host", path="host"))
params.append(VersionedParamPath("disabled", path="disabled"))
params.append(VersionedParamPath("port", path="port"))

self._params = tuple(params)