We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 735f4ee + 94f17d3 commit b0f900dCopy full SHA for b0f900d
1 file changed
src/services/pcn-router/src/Router.cpp
@@ -149,7 +149,10 @@ void Router::delPorts(const std::string &name) {
149
// routing table)
150
port->delSecondaryipList();
151
152
- remove_local_route(port->getIp(), name);
+ //if getIP is empty it means that you have a port with no IP address
153
+ //so you do not need to call remove_local_route
154
+ if(port->getIp().empty() == false)
155
+ remove_local_route(port->getIp(), name);
156
157
auto router_port = get_hash_table<uint16_t, r_port>("router_port");
158
0 commit comments