Unipisa / Simu5G

Simu5G - 5G NR and LTE/LTE-A user-plane simulation model for OMNeT++ & INET
https://simu5g.org
Other
142 stars 81 forks source link

Fix: Usage of Simu5G components inside compound modules #119

Closed Dosclic98 closed 1 year ago

Dosclic98 commented 1 year ago

These changes aim to fix some errors found when using the Simu5G components inside compound modules. In the original version, there were some issues when trying to find the specified module using just the getFullName() method instead of the getFullPath(). Changed this behavior in the GptUser, TrafficFlowFilter (where I also added some code to free the allocated memory at the end of the simulation) and in the LteMacEnb modules.

Now for all the gnbs the value of the parameter gateway must be specified using the full path of the gateway module as in the following example (we suppose that the top level network is called 'Network'): Before **.gnb.gateway = "upf" Now: **.gnb.gateway = "Network.upf"

I dont't know if it is better to let the user specify it every time or implement some code that adds the network name at runtime when the gateway name specified implicitly refer to the top level (like the first one).

giovanninardini commented 1 year ago

Added a commit that: