Skip to content

Commit 46b2848

Browse files
committed
router: update port ip into dataplane too
1 parent 9152c9f commit 46b2848

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/pcn-router/src/Ports.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void Ports::doSetIp(const std::string &new_ip) {
203203
r_port value = router_port.get(index);
204204
value.ip = ip_string_to_nbo_uint(ip_address);
205205
value.netmask = ip_string_to_nbo_uint(netmask);
206+
router_port.set(index, value);
206207
} catch (...) {
207208
logger()->error("Port {0} not found in the data path", this->name());
208209
}

0 commit comments

Comments
 (0)