From 9355fb50ff225db6dafcb42dc57c44b0f3088e3d Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 23 Sep 2024 21:34:53 -0500 Subject: [PATCH 1/4] update start here link for port mirroring --- start_here.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_here.ipynb b/start_here.ipynb index fc8726a6..3afa3170 100644 --- a/start_here.ipynb +++ b/start_here.ipynb @@ -69,7 +69,7 @@ " - Local Ethernet (Layer 2): Create a private local Ethernet network on a FABRIC site ([manual](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_config.ipynb))\n", " - Wide Area Link (Layer 2): Create a private WAN Ethernet link between FABRIC sites ([manual](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_config.ipynb), [explicit routes](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_ero_auto.ipynb))\n", " - [Facility Ports](./fabric_examples/fablib_api/facility_port/facility_port.ipynb): Connect a FABRIC experiment to an external facility such as [Chameleon](https://www.chameleoncloud.org/). \n", - " - Port Mirroring: Listen in on traffic in FABRIC dataplane using PortMirror service ([Infrastructure](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb), [InSlice](./fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb))\n", + " - [Port Mirroring](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb): Listen in on traffic in FABRIC dataplane using PortMirror service.\n", " - [Sub Interfaces](./fabric_examples/fablib_api/sub_interfaces/sub_interfaces.ipynb): Create VLAN-tagged sub-interfaces for Smart NICs, enabling multiple Network Services connections.\n", "\n", "- FPGAs\n", From 935f2865e27f4b1b75d2754b38b56a2335f4ec7a Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 23 Sep 2024 21:53:47 -0500 Subject: [PATCH 2/4] revert back to original --- start_here.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_here.ipynb b/start_here.ipynb index 3afa3170..a53a5862 100644 --- a/start_here.ipynb +++ b/start_here.ipynb @@ -69,7 +69,7 @@ " - Local Ethernet (Layer 2): Create a private local Ethernet network on a FABRIC site ([manual](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_config.ipynb))\n", " - Wide Area Link (Layer 2): Create a private WAN Ethernet link between FABRIC sites ([manual](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_config.ipynb), [explicit routes](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_ero_auto.ipynb))\n", " - [Facility Ports](./fabric_examples/fablib_api/facility_port/facility_port.ipynb): Connect a FABRIC experiment to an external facility such as [Chameleon](https://www.chameleoncloud.org/). \n", - " - [Port Mirroring](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb): Listen in on traffic in FABRIC dataplane using PortMirror service.\n", + " - Port Mirroring: Listen in on traffic in FABRIC dataplane using PortMirror service ([Infrastructure](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb), [InSlice](./fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb))\n", " - [Sub Interfaces](./fabric_examples/fablib_api/sub_interfaces/sub_interfaces.ipynb): Create VLAN-tagged sub-interfaces for Smart NICs, enabling multiple Network Services connections.\n", "\n", "- FPGAs\n", From 07ddf418750bf26d9441cacd63fe530dbce70494 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 23 Sep 2024 21:54:39 -0500 Subject: [PATCH 3/4] revert back to original --- start_here.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_here.ipynb b/start_here.ipynb index a53a5862..fc8726a6 100644 --- a/start_here.ipynb +++ b/start_here.ipynb @@ -69,7 +69,7 @@ " - Local Ethernet (Layer 2): Create a private local Ethernet network on a FABRIC site ([manual](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_basic/create_l2network_basic_config.ipynb))\n", " - Wide Area Link (Layer 2): Create a private WAN Ethernet link between FABRIC sites ([manual](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_manual.ipynb), [auto](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_auto.ipynb), [user defined](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_config.ipynb), [explicit routes](./fabric_examples/fablib_api/create_l2network_wide_area/create_l2network_wide_area_ero_auto.ipynb))\n", " - [Facility Ports](./fabric_examples/fablib_api/facility_port/facility_port.ipynb): Connect a FABRIC experiment to an external facility such as [Chameleon](https://www.chameleoncloud.org/). \n", - " - Port Mirroring: Listen in on traffic in FABRIC dataplane using PortMirror service ([Infrastructure](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb), [InSlice](./fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb))\n", + " - Port Mirroring: Listen in on traffic in FABRIC dataplane using PortMirror service ([Infrastructure](./fabric_examples/fablib_api/create_port_mirror/port_mirror.ipynb), [InSlice](./fabric_examples/fablib_api/create_port_mirror/port_mirror_basic.ipynb))\n", " - [Sub Interfaces](./fabric_examples/fablib_api/sub_interfaces/sub_interfaces.ipynb): Create VLAN-tagged sub-interfaces for Smart NICs, enabling multiple Network Services connections.\n", "\n", "- FPGAs\n", From 2819ac0758680f7656dfa4eede22110cfc61747b Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 23 Sep 2024 21:56:49 -0500 Subject: [PATCH 4/4] fix the notebook --- .../fablib_api/create_port_mirror/port_mirror_basic.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",