<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I'm still developing the odd patch for RtConfig as we encounter issues in our environment.  In general I'd be keen to work with the community to get as many of our patches as possible (specifically XR support) into a new release of IRRToolSet.<br><br></div>Latest issue we've found is that if you do something like:<br> community=
{0:20000}
<br><br></div>The output for Cisco IOS & Cisco XR drops the 0:<br><br></div>Patch to fix is below.<br><br></div>Regards,<br>Daryl<br><div><div><br><div><div>patch-17-fix-0:-communities<br><br>--- src/rtconfig/f_cisco.cc.orig        2014-09-29 16:48:39.000000000 +0930<br>+++ src/rtconfig/f_cisco.cc     2014-09-29 16:48:59.000000000 +0930<br>@@ -809,7 +809,7 @@<br>    else {<br>       int high = i >> 16;<br>       int low  = i & 0xFFFF;<br>-      if (high == 0 || high == 0xFFFF)<br>+      if (high < 0 || high == 0xFFFF)<br>         os << i;<br>       else<br>         os << high << ":" << low;<br><br>--- src/rtconfig/f_ciscoxr.cc.orig      2014-09-29 16:51:18.000000000 +0930<br>+++ src/rtconfig/f_ciscoxr.cc   2014-09-29 16:46:52.000000000 +0930<br>@@ -854,7 +854,7 @@<br>    else {<br>       int high = i >> 16;<br>       int low  = i & 0xFFFF;<br>-      if (high == 0 || high == 0xFFFF)<br>+      if (high < 0 || high == 0xFFFF)<br>         os << i;<br>       else<br>         os << high << ":" << low;<br><br></div></div></div></div></div>