Files
test/keywords/linux/ip/object/interface_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

47 lines
939 B
Python

class InterfaceObject:
"""
Class for interface object
"""
def __init__(self, interface_name: str, mtu: str, state: str, mode: str):
self.interface_name = interface_name
self.mtu = mtu
self.state = state
self.mode = mode
def get_interface_name(self) -> str:
"""
Getter for interface name
Returns:
str: the interface name value
"""
return self.interface_name
def get_mtu(self) -> str:
"""
Getter for mtu name
Returns:
str: the mtu name value
"""
return self.mtu
def get_state(self) -> str:
"""
Getter for state
Returns:
str: the state value
"""
return self.state
def get_mode(self) -> str:
"""
Getter for mode
Returns:
str: the mode value
"""
return self.mode