Source code for RsAreg800.Implementations.System.Communicate.Network.IpAddress.Subnet

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response

# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SubnetCls: """Subnet commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("subnet", core, parent)
[docs] def get_mask(self) -> str: """SCPI: SYSTem:COMMunicate:NETWork:[IPADdress]:SUBNet:MASK \n Snippet: value: str = \n Sets the subnet mask. \n :return: mask: string """ response ='SYSTem:COMMunicate:NETWork:IPADdress:SUBNet:MASK?') return trim_str_response(response)
[docs] def set_mask(self, mask: str) -> None: """SCPI: SYSTem:COMMunicate:NETWork:[IPADdress]:SUBNet:MASK \n Snippet: = 'abc') \n Sets the subnet mask. \n :param mask: string """ param = Conversions.value_to_quoted_str(mask)'SYSTem:COMMunicate:NETWork:IPADdress:SUBNet:MASK {param}')