Files
test/keywords/ptp/cat/objects/transport_options_object.py
aabhinav 65d935a2b8 pylint fix 01
Description:
- Added a missing import for SSHConnection.
- Added data types to function arguments and return values.
- Removed Returns section in docstring when function return type is None

Change-Id: Id96217573f629d40a52459a3b45d26ae0649aa03
Signed-off-by: aabhinav <ayyapasetti.abhinav@windriver.com>
2025-07-15 08:11:50 -04:00

140 lines
3.2 KiB
Python

class TransportOptionsObject:
"""
Object to hold the values of Transport Options Object
"""
def __init__(self):
self.transport_specific: str = ""
self.ptp_dst_mac: str = ""
self.p2p_dst_mac: str = ""
self.udp_ttl: int = -1
self.udp6_scope: str = ""
self.uds_address: str = ""
self.uds_ro_address: str = ""
def get_transport_specific(self) -> str:
"""
Getter for transport_specific
Returns:
str: the transport_specific value
"""
return self.transport_specific
def set_transport_specific(self, transport_specific: str) -> None:
"""
Setter for transport_specific
Args:
transport_specific (str): the transport_specific value
"""
self.transport_specific = transport_specific
def get_ptp_dst_mac(self) -> str:
"""
Getter for ptp_dst_mac
Returns:
str: the ptp_dst_mac value
"""
return self.ptp_dst_mac
def set_ptp_dst_mac(self, ptp_dst_mac: str) -> None:
"""
Setter for ptp_dst_mac
Args:
ptp_dst_mac (str): the ptp_dst_mac value
"""
self.ptp_dst_mac = ptp_dst_mac
def get_p2p_dst_mac(self) -> str:
"""
Getter for p2p_dst_mac
Returns:
str: the p2p_dst_mac value
"""
return self.p2p_dst_mac
def set_p2p_dst_mac(self, p2p_dst_mac: str) -> None:
"""
Setter for p2p_dst_mac
Args:
p2p_dst_mac (str): p2p_dst_mac value
"""
self.p2p_dst_mac = p2p_dst_mac
def get_udp_ttl(self) -> int:
"""
Getter for udp_ttl
Returns:
int: the udp_ttl value
"""
return self.udp_ttl
def set_udp_ttl(self, udp_ttl: int) -> None:
"""
Setter for udp_ttl
Args:
udp_ttl (int): the udp_ttl value
"""
self.udp_ttl = udp_ttl
def get_udp6_scope(self) -> str:
"""
Getter for udp6_scope
Returns:
str: the udp6_scope value
"""
return self.udp6_scope
def set_udp6_scope(self, udp6_scope: str) -> None:
"""
Setter for udp6_scope
Args:
udp6_scope (str): the udp6_scope value
"""
self.udp6_scope = udp6_scope
def get_uds_address(self) -> str:
"""
Getter for uds_address
Returns:
str: uds_address value
"""
return self.uds_address
def set_uds_address(self, uds_address: str) -> None:
"""
Setter for uds_address
Args:
uds_address (str): the uds_address value
"""
self.uds_address = uds_address
def get_uds_ro_address(self) -> str:
"""
Getter for uds_ro_address
Returns:
str: uds_ro_address value
"""
return self.uds_ro_address
def set_uds_ro_address(self, uds_ro_address: str) -> None:
"""
Setter for uds_ro_address
Args:
uds_ro_address (str): the uds_ro_address value
"""
self.uds_ro_address = uds_ro_address