The proposed software framework allows you using Mininet-based SDN simulation with NS-3 Simulator. It enables Wireless Mesh Routing based on OLSR protocol with Ryu SDN Controller. The implementation has been evaluated in the context of smart cities communication as well as for smart grids.