Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Apr 21, 2017
1 parent 9037f0b commit 035ca26
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 7 deletions.
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Change log
==========

next release
------------
.. note:: **Upgrade notes**: after upgrading, run the ``arouteserver setup-templates`` command to sync the local templates with those distributed with the new version. More details on the `Upgrading <https://arouteserver.readthedocs.io/en/latest/INSTALLATION.html#upgrading>`_ section of the documentation.

v0.6.0
------

- OpenBGPD 6.1 support: enable large BGP communities support.
- Improvement: the ``clients-from-peeringdb`` command now uses the `IX-F database <http://www.ix-f.net/ixp-database.html>`_ to show a list of IXP and their PeeringDB ID.
Expand Down
2 changes: 1 addition & 1 deletion pierky/arouteserver/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__version__ = "0.5.0"
__version__ = "0.6.0"
COPYRIGHT_YEAR = 2017
8 changes: 4 additions & 4 deletions templates/fingerprints.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bird:
clients.j2: 12d35a56750ec21e7368d144380ef24042e2f544e6e07dc3e17f8fa0340baf59534f077d1add97cf88082ed021972dd7dbec332e6d75f2c7ac22af45caca4fd5
clients.j2: 0258972f560556a2425819c1e44ee3272334c7b1be1c00b7aebe8d9776009d4bcf32069ebb641eadde67b1387973209851f3eb43cc24d96bc7aa34a56492bbb3
common.j2: f0b8811530b9cb8168e8c957f8101e47bb8d2750e47eef68db0c7f2a82e8e493fa5d0b001610e3936d84d5db60d723a6c4024cb4492dfa955efed8e402177c0c
header.j2: 3757ac8c70d5ae19ae5faed1f641d3caac80d962cd7cffe49740f69532233f0761315136f31d316289cd4162ffff43d653760f209dfa035d49b981fc8c999ca1
irrdb.j2: 9b7534a07eddbb77b17a223eac2135f9ef1656dab7e8d9cfa0e5c3aef4d7a367a7b3cd328f3106bf0d02a771ca27bef9cdbadf9d7f14471fea7c1baaa4e0a68e
Expand All @@ -8,13 +8,13 @@ bird:
rpki.j2: 90e27c965acaf5ce44b3ad5589c9c190d2236bbf1a0f7f278462a50cb432fb683797fc6519d8e5570a9416a2abd3556ee1d2fd14c059c9f8be71cb993ea6ad3c
html:
macros.j2: c3e8ececdce82eb9010f1e160eaffec004592ce709753095c10881e6c1666b1780cfefd7f113002f08fdc38703482e8d8c2f2ea0495757ac3f8e1c8eb3694342
main.j2: 9957e09c8f2a8e69969cbab96b7e5c125421068bcbc70d87550a2734a42a16b8a408e2a90b2a75e612ecb864316f210f3c3850393fb7a6e56c67ff5f6a30c159
main.j2: bada1323c48cae3c34bb8087a14cc0d240a71c397dba94c2ffcd31761682d6a39a0b374190aded1efb5903c5010225bdbf76a4776ed39015384577ba502df7e0
openbgpd:
clients.j2: afb5ff83d074867f60f332f9d709dfae3fc5ba74f0eb5f55a05ee82efbc3b7697b7198c65baa3af802cc855555142aae8f68869bf505bba77111d2dabc90bd13
filters.j2: 823cd23fd80949880b67a99d35969113bdb9307a9b8f1ce1b846e975eaf0f76d1e5183823b1285b7a8c62a00309608b8eb932a707bc3ff8e32856d78b32bac5c
filters.j2: 42fad58c0dc00ea1b82a598a07f204fce491d268d8385b7fec4e1a4f3f6f6c2a70f847504a08a54e0f9fa1e2c06af4a2a1af838be8f1e33b1083a4c5cfa6844c
header.j2: 9514f6c829ac719ff5217855a4ecef973aa386e6adec7a1bb5f4bcce7cd305194488811f6dcbb65d269d56ef27b6f2ba0b0954edba21a9124eeb3af0bf991819
irrdb.j2: c0221952244b2ca91314a4b5f37206ea1a1ed4bb31544c48c8b450b3ec84ffb4ef18c4df4fdcf78e3c940d330b635628051ebfc1af40f877cddba028274ca023
macros.j2: bb627c359cbe54e8843650a125a5335a2759cae56972d93abaedd3cfb84ba28a73fa2ff0115c961e8972af260f8327412f5944ddfc9b745c6e26b45b26ca8ce5
macros.j2: 93839a89737e2aa2e5a19df06c85bb2b9964076bffe230355be22175ebadae56ebcbe181d252ae196e36940deacd9b62009f967def0933c9b1a17e287d18a25e
main.j2: c81d8a3d4052a440f3d404ebdadeeae181966447463f9733768d8d9da4304cd6ea1505a9fdb58e3df55521c44bd03174efa3d3f35b5b79b8d7dda17ee9589061
template-context:
main.j2: 2d9508bdb1f2414ec1be04a0f578f573f7c7fff2d7a06aa23c1e3585a6ff02f928de01943f1ddfc2afac53018a96f4d36c1793e05b2dea6b62374611d5a02fc8
103 changes: 103 additions & 0 deletions utils/test_new_rel
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/bin/bash

if [ "`pwd`" != `echo ~` ]; then
echo "The script must be executed from within the user's home directory."
exit
fi
ROOT="`pwd`/arouteserver"
CURR_PACKAGE="`ls $ROOT/dist/ | tail -n 1`"

function run() {
VENV_NAME="$1"; shift
IS_UPGR="$1"; shift

echo "Arguments: VENV_NAME: $VENV_NAME, IS_UPGR: $IS_UPGR"
echo
echo

echo "Setting up the environment..."
VENV_DIR=~/.virtualenvs/$VENV_NAME
DEST_DIR=~/$VENV_NAME
CFG_FILE=$DEST_DIR/arouteserver.yml

if [ $IS_UPGR -eq 0 ]; then
rm -r $DEST_DIR
rm -r $VENV_DIR
fi

mkdir -p $DEST_DIR
mkdir -p $VENV_DIR

virtualenv $VENV_DIR
source $VENV_DIR/bin/activate
echo
echo

if [ $IS_UPGR -eq 1 ]; then
echo -n "Previous version of arouteserver: "
pip freeze | grep arouteserver
echo
echo
fi

echo "Installing $CURR_PACKAGE..."
if [ $IS_UPGR -eq 1 ]; then
pip install --upgrade $ROOT/dist/$CURR_PACKAGE
else
pip install $ROOT/dist/$CURR_PACKAGE
fi
echo
echo

echo -n "Installed version of arouteserver: "
pip freeze | grep arouteserver
echo
echo

if [ $IS_UPGR -eq 0 ]; then
echo "Testing setup..."
arouteserver setup --dest-dir $DEST_DIR
echo
echo
fi

echo "Testing BIRD..."
arouteserver bird --cfg $CFG_FILE -o /dev/null --ip-ver 4
echo
echo

echo "Testing OpenBGPD..."
arouteserver openbgpd --cfg $CFG_FILE -o /dev/null --ignore-issues path_hiding
echo
echo

if [ $IS_UPGR -eq 1 ]; then
echo "Verifying templates..."
arouteserver verify-templates --cfg $CFG_FILE
echo
echo

echo -n "Run 'setup-templates'? [yes/NO] "
read YES_NO

if [ "$YES_NO" == "yes" ]; then
echo "Running setup-templates..."
arouteserver setup-templates --cfg $CFG_FILE
echo
echo
else
echo
echo
fi
fi

echo "Deactivating venv (activate with 'source $VENV_DIR/bin/activate')..."
deactivate
echo
echo
}

run "ars_new_rel_test" 0
run "ars_upgr_rel_test" 1

echo "Done!"

0 comments on commit 035ca26

Please sign in to comment.