Skip to content
Snippets Groups Projects
Commit 1649cd5e authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

NAT-329: added generator for nokia interface members

parent 541740e0
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
......@@ -89,6 +89,11 @@ class FakerProvider(BaseProvider):
LAGMember(interface_name=interface_name, interface_description=self.generator.sentence())
for interface_name in interface_names]
def generate_nokia_members_list(self) -> list[LAGMember]:
iface_amount = self.generator.random_int(min=1, max=5)
return [
LAGMember(interface_name=f"Interface{i}",
interface_description=self.generator.sentence()) for i in range(iface_amount )]
@pytest.fixture(scope="session")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment