From: Marcel Enguehard Date: Fri, 18 Aug 2017 08:41:59 +0000 (+0200) Subject: Fixed bug in EmulatedLteChannel for unmanaged devices X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F8104%2F1;p=cicn.git Fixed bug in EmulatedLteChannel for unmanaged devices Change-Id: I58e975cef6b621f0a89cf4683eaaccb04a9d2e17 Signed-off-by: Marcel Enguehard --- 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)