<div dir="auto"><div>Generally speaking the config is not sorted alphabetically. Perhaps some small subsections are, but I don't know of any off the top of my head. However it is the case that config is not output in the same order it is input. Output is dictated by the order in which the config render functions output config lines, and there are many such functions.There are no facilities for enforcing any specific ordering scheme, partially because the current scheme should always work and not result in the behavior you described.</div><div dir="auto"><br></div><div dir="auto">If you're seeing a situation like you described with dependent configuration getting lost, please open an issue on GitHub so we can fix that. That is a bug independent of the ordering of frr.conf. There are also misconfigs you could have made to cause the same behavior, so please be thorough in the bug report.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Jun 28, 2020, 7:36 AM bmrajesh . <<a href="mailto:bmrajesh@gmail.com">bmrajesh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I have noticed that FRR VTYSH sorts the config commands in alphabetical order. For example:</div><div>interface gig0/1</div><div>  ip address <address>/<mask></div><div>  mtu 9000</div><div><br></div><div>Is there a way to change this order, like if i want "mtu 9000" to come before "ip address..." ?</div><div>One issue is if config A is dependent on config B, and if config A is saved (in frr.conf) before config B, then on restarting a process config A fails and is lost.</div><div><br></div><div>Thanks & Regards,</div><div>Rajesh</div><div><br></div></div>
_______________________________________________<br>
frog mailing list<br>
<a href="mailto:frog@lists.frrouting.org" target="_blank" rel="noreferrer">frog@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
</blockquote></div></div></div>