From 3770e4bcc30b0bc4b21f5f4bbe39c0e1924008e7 Mon Sep 17 00:00:00 2001 From: "Srivats P." Date: Tue, 17 Jun 2014 18:08:53 +0530 Subject: [PATCH] CLI: Added topology information to example.py --- binding/example.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/binding/example.py b/binding/example.py index c84f6ae..9ee39ad 100644 --- a/binding/example.py +++ b/binding/example.py @@ -34,6 +34,22 @@ if len(sys.argv) > 1: print(' -h --help show this help') sys.exit(0) +print('') +print('This example expects the following topology -') +print('') +print(' +-------+ +-------+') +print(' | |Tx--->----| |') +print(' | Drone | | DUT |') +print(' | |Rx---<----| |') +print(' +-------+ +-------+') +print('') +print('Drone has 2 ports connected to DUT. Packets sent on the Tx port') +print('are expected to be received back on the Rx port') +print('') +print('An easy way to simulate the above topology is to select the loopback') +print('port as both Tx and Rx ports') +print('') + if not use_defaults: s = raw_input('Drone\'s Hostname/IP [%s]: ' % (host_name)) host_name = s or host_name