Commit 266accf
authored
Port mapping does not show external IP when using static IP (#8416)
When using static IP for container network, the port mapping will
not be shown when the gateway is not set.
If container network is from DHCP, so everything is working well
because we can get gateway, netmask from DHCP ask packet. But if
we set a static IP, the DHCP request will not be sent for container
network, so gateway will be missed.1 parent 4fa5961 commit 266accf
3 files changed
Lines changed: 47 additions & 1 deletion
File tree
- lib
- apiservers/portlayer/restapi/handlers
- portlayer/network
- tests/test-cases/Group1-Docker-Commands
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
| 650 | + | |
649 | 651 | | |
650 | 652 | | |
| 653 | + | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| 659 | + | |
| 660 | + | |
655 | 661 | | |
656 | 662 | | |
657 | 663 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1118 | 1127 | | |
1119 | 1128 | | |
1120 | 1129 | | |
| |||
1209 | 1218 | | |
1210 | 1219 | | |
1211 | 1220 | | |
| 1221 | + | |
1212 | 1222 | | |
1213 | 1223 | | |
1214 | 1224 | | |
1215 | 1225 | | |
1216 | 1226 | | |
1217 | 1227 | | |
1218 | 1228 | | |
1219 | | - | |
1220 | 1229 | | |
1221 | 1230 | | |
1222 | 1231 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
0 commit comments