Commit acd32bd
committed
configurator: add addRemoteRoutes and addManualRoutes parameters
Give the IPv4 and IPv6 network configurators finer-grained control over
which routes they install, so a routing protocol can be tested with each
router knowing only its directly-connected subnets and learning every
remote subnet from the protocol (otherwise the configurator's precomputed
shortest-path routes mask the protocol; for BGP they make decisionProcess
discard the learned route because a route to the destination already exists).
- addRemoteRoutes (default true): when false, do not add the multi-hop
shortest-path routes (those that have a gateway / next hop). This is the
mirror image of the existing addDirectRoutes filter, which drops the
on-link (gateway-less) routes. Used only when addStaticRoutes is true.
- addManualRoutes (default true): when false, skip the manual <route>
entries in the XML configuration. Independent of addStaticRoutes: manual
routes are still applied regardless of the master switch, as before.
All new parameters default to true, so existing behavior is unchanged.1 parent 6666190 commit acd32bd
6 files changed
Lines changed: 24 additions & 3 deletions
File tree
- src/inet/networklayer/configurator
- ipv4
- ipv6
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
1583 | 1587 | | |
1584 | 1588 | | |
1585 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
1586 | 1592 | | |
1587 | 1593 | | |
1588 | 1594 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
416 | 417 | | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
1037 | 1041 | | |
1038 | 1042 | | |
1039 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1040 | 1047 | | |
1041 | 1048 | | |
1042 | 1049 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments