Add wireless simulation to redesigned Mini-NDN using Mininet-wifi.
refs: #4858
Change-Id: If9f7dd069203309c998ab2ff570a6cc8ee362434
diff --git a/minindn/util.py b/minindn/util.py
index 8584ffc..82fcdac 100644
--- a/minindn/util.py
+++ b/minindn/util.py
@@ -25,6 +25,7 @@
from os.path import isfile
from subprocess import call
from mininet.cli import CLI
+from mn_wifi.cli import CLI as CLI_wifi
sshbase = ['ssh', '-q', '-t', '-i/home/mininet/.ssh/id_rsa']
scpbase = ['scp', '-i', '/home/mininet/.ssh/id_rsa']
@@ -75,3 +76,8 @@
prompt = 'mini-ndn> '
def __init__(self, mininet, stdin=sys.stdin, script=None):
CLI.__init__(self, mininet, stdin, script)
+
+class MiniNDNWifiCLI(CLI_wifi):
+ prompt = 'mini-ndn-wifi> '
+ def __init__(self, mininet, stdin=sys.stdin, script=None):
+ CLI_wifi.__init__(self, mininet, stdin, script)
\ No newline at end of file