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

NAT-329 added juniper interface name generator

parent 5f99d68f
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
......@@ -77,7 +77,7 @@ class FakerProvider(BaseProvider):
iface_amount = self.generator.random_int(min=1, max=5)
interface_names = [f"{prefix}{i}" for prefix in ["xe-1/0/", "ge-3/0/", "xe-2/1/"] for i in range(iface_amount)]
return [
LAGMember(interface_name=interface_name, interface_description=self.sentence())
LAGMember(interface_name=interface_name, interface_description=self.generator.sentence())
for interface_name in interface_names]
......
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