Commit 8195188
committed
feat: Add the support for the optional route source parameter in nm provider
Enhancement: Add the optional route source parameter for the nm provider
Reason: In a scenario where you have a machine with multiple public IP
addresses, typically due to a multi-WAN setup, the src parameter in the
context of routes allows you to specify which source IP address should
be used when sending packets via a specific route. This is crucial when
you want to ensure that outbound traffic uses a specific IP address tied
to a particular network interface, especially when dealing with multiple
WAN connections.
Result: Adding support for the src parameter in routes results in a
more powerful and flexible network configuration capability, especially
important in environments with multiple network interfaces or multiple
IP addresses, it provides better control over traffic routing.
Resolves: https://issues.redhat.com/browse/RHEL-3252
Signed-off-by: Wen Liang <[email protected]>1 parent 098e5e1 commit 8195188
File tree
5 files changed
+84
-4
lines changed- library
- module_utils/network_lsr
- tests
- playbooks
- unit
5 files changed
+84
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1266 | 1270 | | |
1267 | 1271 | | |
1268 | 1272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
683 | 686 | | |
684 | 687 | | |
685 | 688 | | |
| |||
716 | 719 | | |
717 | 720 | | |
718 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
719 | 732 | | |
720 | 733 | | |
721 | 734 | | |
| |||
2627 | 2640 | | |
2628 | 2641 | | |
2629 | 2642 | | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
2630 | 2649 | | |
2631 | 2650 | | |
2632 | 2651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
126 | 141 | | |
127 | 142 | | |
128 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
129 | 147 | | |
130 | 148 | | |
131 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
298 | 305 | | |
299 | 306 | | |
300 | 307 | | |
| |||
1144 | 1151 | | |
1145 | 1152 | | |
1146 | 1153 | | |
| 1154 | + | |
1147 | 1155 | | |
1148 | 1156 | | |
1149 | 1157 | | |
| |||
1485 | 1493 | | |
1486 | 1494 | | |
1487 | 1495 | | |
| 1496 | + | |
1488 | 1497 | | |
1489 | 1498 | | |
1490 | 1499 | | |
| |||
1635 | 1644 | | |
1636 | 1645 | | |
1637 | 1646 | | |
| 1647 | + | |
1638 | 1648 | | |
1639 | 1649 | | |
1640 | 1650 | | |
| |||
1698 | 1708 | | |
1699 | 1709 | | |
1700 | 1710 | | |
| 1711 | + | |
1701 | 1712 | | |
1702 | 1713 | | |
1703 | 1714 | | |
| |||
2661 | 2672 | | |
2662 | 2673 | | |
2663 | 2674 | | |
| 2675 | + | |
2664 | 2676 | | |
2665 | 2677 | | |
2666 | 2678 | | |
| |||
2670 | 2682 | | |
2671 | 2683 | | |
2672 | 2684 | | |
| 2685 | + | |
2673 | 2686 | | |
2674 | 2687 | | |
2675 | 2688 | | |
| |||
2767 | 2780 | | |
2768 | 2781 | | |
2769 | 2782 | | |
| 2783 | + | |
2770 | 2784 | | |
2771 | 2785 | | |
2772 | 2786 | | |
| |||
2776 | 2790 | | |
2777 | 2791 | | |
2778 | 2792 | | |
| 2793 | + | |
2779 | 2794 | | |
2780 | 2795 | | |
2781 | 2796 | | |
| |||
2785 | 2800 | | |
2786 | 2801 | | |
2787 | 2802 | | |
| 2803 | + | |
2788 | 2804 | | |
2789 | 2805 | | |
2790 | 2806 | | |
| |||
2923 | 2939 | | |
2924 | 2940 | | |
2925 | 2941 | | |
| 2942 | + | |
2926 | 2943 | | |
2927 | 2944 | | |
2928 | 2945 | | |
| |||
2932 | 2949 | | |
2933 | 2950 | | |
2934 | 2951 | | |
| 2952 | + | |
2935 | 2953 | | |
2936 | 2954 | | |
2937 | 2955 | | |
| |||
2941 | 2959 | | |
2942 | 2960 | | |
2943 | 2961 | | |
| 2962 | + | |
2944 | 2963 | | |
2945 | 2964 | | |
2946 | 2965 | | |
| |||
5001 | 5020 | | |
5002 | 5021 | | |
5003 | 5022 | | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
5004 | 5042 | | |
5005 | 5043 | | |
5006 | 5044 | | |
| |||
0 commit comments