aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Enguehard <mengueha+fdio@cisco.com>2017-08-18 10:41:59 +0200
committerMarcel Enguehard <mengueha+fdio@cisco.com>2017-08-18 10:41:59 +0200
commita49f54003117af13fff95790e7eafcfaa983cc9b (patch)
tree0fecbaeedacfc379512d45c2ebedc1ef8ba3ce6c
parente4d3f8ca1c9e130c4cbb3211b9ac0850c2456973 (diff)
Fixed bug in EmulatedLteChannel for unmanaged devices
Change-Id: I58e975cef6b621f0a89cf4683eaaccb04a9d2e17 Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
-rw-r--r--vicn/resource/ns3/emulated_lte_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vicn/resource/ns3/emulated_lte_channel.py b/vicn/resource/ns3/emulated_lte_channel.py
index 0847a403..dde44c92 100644
--- a/vicn/resource/ns3/emulated_lte_channel.py
+++ b/vicn/resource/ns3/emulated_lte_channel.py
@@ -145,7 +145,7 @@ class EmulatedLteChannel(EmulatedChannel):
sta_list.append(interface.name)
sta_macs.append(interface.mac_address)
- sta_ips.append(str(interface.ip4_address)+'/'+str(prefix_len))
+ sta_ips.append(str(interface.ip4_address)+'/'+str(interface.ip4_address.prefix_len))
else:
identifier = self._sta_ifs[station]._state.uuid._uuid
sta_list.append(identifier)