diff --git a/fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb b/fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb index 039431f9..81914e7c 100644 --- a/fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb +++ b/fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb @@ -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", @@ -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", @@ -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",