We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b2848 commit 8c5dfd6Copy full SHA for 8c5dfd6
src/services/pcn-router/src/Ports.cpp
@@ -142,6 +142,14 @@ Ports::Ports(polycube::service::Cube<Ports> &parent,
142
};
143
144
if (!parent_.get_shadow()) {
145
+ // Align parameters of the port with the ones of the interface if connected
146
+ if (conf.macIsSet()) {
147
+ set_peer_parameter("MAC", conf.getMac());
148
+ }
149
+ if (conf.ipIsSet()) {
150
+ set_peer_parameter("IP", conf.getIp());
151
152
+
153
/* Register the new port to IP and MAC notifications arriving from ExtIface
154
* do not use define because strings are easier to manipulate
155
* for future extensions */
0 commit comments