Skip to content

Commit

Permalink
Merge pull request #309 from fabric-testbed/port_mirror_iperf3
Browse files Browse the repository at this point in the history
Port mirror iperf3
  • Loading branch information
kthare10 authored Sep 24, 2024
2 parents f00e9e9 + 2819ac0 commit f3ae960
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"metadata": {},
"outputs": [],
"source": [
"slice_name = 'MySlice-generator-listener'\n",
"slice_name = 'MySlice-generator-listener-basic'\n",
"\n",
"node1_name = 'Node1'\n",
"node2_name = 'Node2'\n",
Expand All @@ -78,7 +78,7 @@
"cx5_column_name = 'nic_connectx_5_available'\n",
"\n",
"# find two sites with available ConnectX-5\n",
"site1 = fablib.get_random_site(filter_function=lambda x: x[cx5_column_name] > 0)\n",
"site1 = fablib.get_random_site(filter_function=lambda x: x[cx5_column_name] == 2)\n",
"\n",
"site2 = fablib.get_random_site(avoid=[site1])\n",
"\n",
Expand Down Expand Up @@ -108,7 +108,7 @@
"\n",
"# Node1\n",
"node1 = slice.add_node(name=node1_name, site=site1)\n",
"iface1 = node1.add_component(model='NIC_Basic', name='nic1').get_interfaces()[0]\n",
"iface1 = node1.add_component(model='NIC_ConnectX_5', name='nic1').get_interfaces()[0]\n",
"iface1.set_mode('auto')\n",
"net1.add_interface(iface1)\n",
"node1.add_route(subnet=fablib.FABNETV4_SUBNET, next_hop=net1.get_gateway())\n",
Expand Down

0 comments on commit f3ae960

Please sign in to comment.