Proposal to Feature request: interface ip addresses order #15464
Santhosh Muruganantham
smuruganantham at msystechnologies.com
Wed May 22 06:55:36 UTC 2024
Dear FRR Development Community,
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.
Issue Description
Currently, when IP addresses are assigned to an interface using vtysh, 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.
Proposed Solution
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, set_order
position(int), would enable users to specify the desired position of each
IP address on an interface.
Implementation Details
1.
*New CLI Command:*
- set_order position(int): This command will allow users to specify the
position of an IP address on an interface.
2. *Usage Example:*
2.
interface lo
ip address 192.0.2.1/32
ip address 198.51.100.1/32
set_order 198.51.100.1/32 1
In the example above, the IP address 198.51.100.1/32 is set to be the
first IP address on the loopback interface lo.
3.
*Behavior:*
- When the set_order command is used, the specified IP address will be
positioned accordingly in the running configuration.
- Upon saving the configuration, the order specified by the user will
be preserved.
4.
*Benefits:*
- This feature provides users with greater control over the IP address
configuration on their interfaces.
- It avoids the complications associated with reordering IP
addresses, particularly for systems relying on a specific address being
primary.
Conclusion
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.
Thank you for considering this proposal. I look forward to your feedback
and am happy to discuss this further.
SANTHOSH M
Software Engineer
MSys Technologies
smuruganantham at msystechnologies.com <XXXXXX at msystechnologies.com>
+91 9361040479
www.msystechnologies.com
<https://www.google.com/url?q=https://www.msystechnologies.com/&source=gmail-html&ust=1705662114965000&usg=AOvVaw2cc7v3B-oPPmtih9ldemRT>
Power Your Software
Development With
<https://www.google.com/url?q=https://www.msystechnologies.com/&source=gmail-html&ust=1705662114966000&usg=AOvVaw3i0z7qNCmoXw0fdzCjMoKF>
<https://www.google.com/url?q=https://in.linkedin.com/company/msys-technologies&source=gmail-html&ust=1705662114966000&usg=AOvVaw1j7u3i9iJkJpekNWfrNW1->
--
****** DISCLAIMER - MSysTechnologies LLC ******
This email message,
contents and its attachments may contain confidential, proprietary or
legally privileged information and is intended solely for the use of the
individual or entity to whom it is actually intended. If you have
erroneously received this message, please permanently delete it immediately
and notify the sender. If you are not the intended recipient of the email
message,you are notified strictly not to disseminate,distribute or copy
this e-mail.E-mail transmission cannot be guaranteed to be secure or
error-free as Information could be intercepted, corrupted, lost, destroyed,
incomplete or contain viruses and MSysTechnologies LLC accepts no liability
for the contents and integrity of this mail or for any damage caused by the
limitations of the e-mail transmission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20240522/365d72da/attachment.htm>
More information about the dev
mailing list