test/keywords/linux/ip/object/ip_br_addr_object.py
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

52 lines
1.5 KiB
Python

from keywords.linux.ip.object.ip_object import IPObject
class IPBrAddrObject:
"""
Class that represents each line of the output of the 'ip -br addr' command as an object structure.
"""
def __init__(self):
"""
Constructor.
"""
self.network_interface_name: str = ""
self.network_interface_status: str = ""
self.ip_objects: list[IPObject] = []
def set_network_interface_name(self, network_interface_name: str):
"""
Setter for the 'network_interface_name' property.
"""
self.network_interface_name = network_interface_name
def get_network_interface_name(self) -> str:
"""
Getter for this 'network_interface_name' property.
"""
return self.network_interface_name
def set_network_interface_status(self, network_interface_status: str):
"""
Setter for the 'network_interface_status' property.
"""
self.network_interface_status = network_interface_status
def get_network_interface_status(self) -> str:
"""
Getter for this 'network_interface_status' property.
"""
return self.network_interface_status
def set_ip_objects(self, ip_objects: list[IPObject]):
"""
Setter for the 'ip_objects' property.
"""
self.ip_objects = ip_objects
def get_ip_objects(self) -> list[IPObject]:
"""
Getter for this 'ip_objects' property.
"""
return self.ip_objects