<div dir="ltr"> Dear FRR Development Community,<div> I am writing to propose a solution for an issue regarding the order of
IP addresses on interfaces when using FRR, specifically when configuring
loopback interfaces. <br></div><h3>Issue Description</h3><div>Currently, when IP addresses are assigned to an interface using <code>vtysh</code>, they are installed in the order specified. However, once the configuration is saved, the order of IP addresses in the configuration file is rearranged in ascending order. This reordering can be problematic in scenarios where a specific IP address order is necessary. For example, a loopback interface might have both public and private IP addresses, and it is desirable for the public IP to be the first in order to facilitate standard system operations such as updates.</div><h3>Proposed Solution</h3><p>To address this issue, I propose adding a new command to the FRR CLI that allows users to set the order of IP addresses explicitly. This command, <code>set_order position(int)</code>, would enable users to specify the desired position of each IP address on an interface.</p><h3>Implementation Details</h3><ol><li><p><strong>New CLI Command:</strong></p><ul><li><code>set_order position(int)</code>: This command will allow users to specify the position of an IP address on an interface.</li></ul></li></ol><div> 2. <strong>Usage Example:</strong><pre><div><div><div><span></span></div></div></div></pre><ol><li value="2"><pre><div><div dir="ltr"><code>interface lo
ip address <a href="http://192.0.2.1/32" target="_blank">192.0.2.1/32</a>
ip address <a href="http://198.51.100.1/32" target="_blank">198.51.100.1/32</a>
set_order <a href="http://198.51.100.1/32" target="_blank">198.51.100.1/32</a> 1
</code></div></div></pre><p>In the example above, the IP address <code><a href="http://198.51.100.1/32" target="_blank">198.51.100.1/32</a></code> is set to be the first IP address on the loopback interface <code>lo</code>.</p></li><li><p><strong>Behavior:</strong></p><ul><li>When the <code>set_order</code> command is used, the specified IP address will be positioned accordingly in the running configuration.</li><li>Upon saving the configuration, the order specified by the user will be preserved.</li></ul></li><li><p><strong>Benefits:</strong></p><ul><li>This feature provides users with greater control over the IP address configuration on their interfaces.</li><li>It avoids the complications associated with reordering IP addresses, particularly for systems relying on a specific address being primary.</li></ul></li></ol><h3>Conclusion</h3><p>I believe this enhancement will significantly benefit users who need precise control over IP address order on interfaces, particularly for loopback interfaces with multiple IP addresses. I am willing to contribute to the development and testing of this feature and would appreciate the community's feedback and support.</p><p>Thank you for considering this proposal. I look forward to your feedback and am happy to discuss this further.</p><p><br></p><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle;font-size:medium;font-family:Arial;padding:5px"><tbody><tr><td><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle"><tbody><tr><td style="vertical-align:middle"><h2 color="#000000" style="margin:0px;font-size:15px;color:rgb(0,174,255);text-transform:uppercase;line-height:1.5em">SANTHOSH M</h2><p color="#000000" style="margin:0px;color:rgb(0,0,0);font-size:14px;text-transform:capitalize;line-height:1.5em">Software Engineer</p><p color="#000000" style="margin:0px;color:rgb(0,0,0);font-size:14px;line-height:22px">MSys Technologies</p></td><td width="15"><div style="width:15px"></div></td><td color="#f2547d" width="1" height="auto" style="width:1px;border-bottom:none;border-left:1px solid rgb(0,174,255)"></td><td width="15"><div style="width:15px"></div></td><td style="vertical-align:middle"><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle"><tbody><tr height="20" style="vertical-align:middle"><td width="30" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle"><tbody><tr><td style="vertical-align:bottom"><span color="#f2547d" width="11" style="display:inline-block"><img width="18" src="https://web-dev.msystechnologies.net/wp-content/uploads/2023/04/Email.png"></span></td></tr></tbody></table></td><td style="padding:0px"><span style="color:rgb(0,0,0);font-size:14px"><a href="mailto:XXXXXX@msystechnologies.com" rel="noreferrer" target="_blank">smuruganantham@msystechnologies.com</a></span></td></tr><tr height="20" style="vertical-align:middle"><td width="30" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle"><tbody><tr><td style="vertical-align:bottom"><span color="#f2547d" width="11" style="display:inline-block"><img width="22" src="https://web-dev.msystechnologies.net/wp-content/uploads/2023/04/Phone.png"></span></td></tr></tbody></table></td><td style="padding:0px;color:rgb(0,0,0)"><span style="font-size:14px">+91 9361040479</span></td></tr><tr height="20" style="vertical-align:middle"><td width="30" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" style="vertical-align:-webkit-baseline-middle"><tbody><tr><td style="vertical-align:bottom"><span color="#f2547d" width="11" style="display:inline-block"><img src="https://web-dev.msystechnologies.net/wp-content/uploads/2023/04/Globe.png" width="22"></span></td></tr></tbody></table></td><td style="padding:0px"><a href="https://www.google.com/url?q=https://www.msystechnologies.com/&source=gmail-html&ust=1705662114965000&usg=AOvVaw2cc7v3B-oPPmtih9ldemRT" color="#000000" rel="noreferrer" style="color:rgb(0,0,0);font-size:14px" target="_blank">www.msystechnologies.com</a></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td><table cellpadding="0" cellspacing="0" style="width:448.859px;vertical-align:-webkit-baseline-middle"><tbody><tr><td height="5"></td></tr><tr><td color="#f2547d" width="auto" height="1" style="width:448.859px;border-bottom:1px solid rgb(0,174,255);border-left:none;display:block"></td></tr><tr></tr></tbody></table></td></tr><tr><td><table cellpadding="0" cellspacing="0" style="width:448.859px;vertical-align:-webkit-baseline-middle"><tbody><tr><td><p style="font-size:14px;text-transform:capitalize">Power Your Software<br>Development With</p></td><td style="vertical-align:top"><a href="https://www.google.com/url?q=https://www.msystechnologies.com/&source=gmail-html&ust=1705662114966000&usg=AOvVaw3i0z7qNCmoXw0fdzCjMoKF" rel="noreferrer" target="_blank"><img src="https://web-dev.msystechnologies.net/wp-content/uploads/2023/04/Logo-1.png" width="150"></a></td><td style="text-align:right;vertical-align:middle"><table cellpadding="0" cellspacing="0" style="display:inline-block;vertical-align:-webkit-baseline-middle"><tbody><tr><td><a href="https://www.google.com/url?q=https://in.linkedin.com/company/msys-technologies&source=gmail-html&ust=1705662114966000&usg=AOvVaw1j7u3i9iJkJpekNWfrNW1-" color="#6a78d1" rel="noreferrer" style="display:inline-block;padding:0px;vertical-align:middle" target="_blank"><img src="https://web-dev.msystechnologies.net/wp-content/uploads/2023/04/inkedin-circled.png" height="30" width="30"></a></td><td width="5"><div></div></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr></tr></tbody></table></div></div></div></div></div>
<br>
<p align="center" style="text-align:center"><span style="font-family:Calibri">****** DISCLAIMER - <wbr>MSysTechnologies LLC ******</span><span style="font-family:Calibri"></span></p><p><span style="font-family:Calibri"> </span></p><p><span style="font-family:Calibri">This email message, contents <wbr>and its attachments may <wbr>contain confidential, <wbr>proprietary or legally <wbr>privileged information and is <wbr>intended solely for the use <wbr>of the individual or entity <wbr>to whom it is actually <wbr>intended. If you have <wbr>erroneously received this <wbr>message, please permanently <wbr>delete it immediately and <wbr>notify the sender. If you are <wbr>not the intended recipient of <wbr>the email message,you are <wbr>notified strictly not to <wbr>disseminate,distribute or <wbr>copy this e-mail.E-mail <wbr>transmission cannot be <wbr>guaranteed to be secure or <wbr>error-free as Information <wbr>could be intercepted, <wbr>corrupted, lost, destroyed, <wbr>incomplete or contain viruses <wbr>and MSysTechnologies LLC <wbr>accepts no liability for the <wbr>contents and integrity of <wbr>this mail or for any damage <wbr>caused by the limitations of <wbr>the e-mail transmission.</span><span style="font-family:Calibri"></span></p>