<div dir="ltr"><div><div><div><div><div>Hi,<br><br>Over the past year or so we've moved
from using RtConfig only on Cisco IOS to using it on JunOS & IOS XR
as well. I've written numerous patches to RtConfig to solve various
issues or implement/change features that we've needed. They are in
production for us and work pretty well for our use cases.<br><br>I don't
pretend to be a programmer and I'm sure there are better ways to
implement the patches. My hope is that by posting the various
patches here over the next while, that they will be picked up,
developed further and make it into a future release to be useful for
others :)<br><br>All of the patches are against 5.0.0 but should apply fairly easily to 5.0.1 Here is the first batch:<br><br><b>patch-01-ios-communitydelete.txt</b><br> - implements community.delete() for IOS<br><br><b>patch-02-ios-peertemplates.txt</b><br>
- change RtConfig from using peer groups to newer IOS peer templates<br><br><b>patch-05-junos-ordering-and-duplicate-prefix-numbers.txt</b><br>- fixed ordering issues:<br><br> policy-statement as4802-private-in {<br>
<span class=""></span><span class=""></span> term as4802-private-in-term-2 {<br> from {<br> as-path as-path-2;<br> policy community-pol-2;<br> }<br> then {<br> local-preference 250;<br>
community delete community-1;<br>
community community-32 members [4739:2000]; <<---- this
should not be here, should be outside of this policy-statement<br> community add community-32;<br> accept;<br> }<br> }<br> }<br><br>-
duplicated prefix-list’s - the name prefix-list-100 would be used once
for v4 prefixes, once for v6 prefixes, in junos this would cause one to
overwrite the other.<br><br></div><b>patch-06-junos-acl-nos.txt</b><br></div>- implements @RtConfig set junos_* the same way as IOS functionality works<br><br></div><b>patch-08-junos-ipv6-prefix-length-range.txt</b><br></div>
- implements prefix-length-range for IPv6 on JunOS<br><br></div><b>patch-11-junos-replace.txt</b><br><div><div><div><div><div>- adds replace keywords to JunOS output so that you can use "load replace" rather than "load merge" which isn't very predictable<br>
<br></div><div><br>Daryl</div></div></div></div></div></div>