Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions panos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class Vsys(VersionedPanObject):
"objects.DynamicUserGroup",
"objects.Region",
"objects.Edl",
"objects.TerminalServerAgent",
"policies.Rulebase",
"network.EthernetInterface",
"network.AggregateInterface",
Expand Down
1 change: 1 addition & 0 deletions panos/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Firewall(PanDevice):
"objects.DynamicUserGroup",
"objects.Region",
"objects.Edl",
"objects.TerminalServerAgent",
"policies.Rulebase",
"network.EthernetInterface",
"network.AggregateInterface",
Expand Down
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)