diff --git a/panos/device.py b/panos/device.py index d3b6f2a2..2e2df6eb 100644 --- a/panos/device.py +++ b/panos/device.py @@ -140,6 +140,7 @@ class Vsys(VersionedPanObject): "objects.DynamicUserGroup", "objects.Region", "objects.Edl", + "objects.TerminalServerAgent", "policies.Rulebase", "network.EthernetInterface", "network.AggregateInterface", diff --git a/panos/firewall.py b/panos/firewall.py index 49c8ae3a..ca49c6a4 100644 --- a/panos/firewall.py +++ b/panos/firewall.py @@ -94,6 +94,7 @@ class Firewall(PanDevice): "objects.DynamicUserGroup", "objects.Region", "objects.Edl", + "objects.TerminalServerAgent", "policies.Rulebase", "network.EthernetInterface", "network.AggregateInterface", diff --git a/panos/objects.py b/panos/objects.py index 2aedc449..aba245f7 100644 --- a/panos/objects.py +++ b/panos/objects.py @@ -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("disabled", path="disabled")) + params.append(VersionedParamPath("host", path="host")) + params.append(VersionedParamPath("port", path="port")) + + self._params = tuple(params) +