Skip to content

Commit

Permalink
Merge pull request #303 from arista-eosplus/develop
Browse files Browse the repository at this point in the history
Release merge for 1.3.2
  • Loading branch information
jerearista committed Mar 25, 2015
2 parents 4798174 + bbd6021 commit 11e1cfb
Show file tree
Hide file tree
Showing 81 changed files with 1,578 additions and 280 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
License
=======

Copyright (c) 2013-2014, Arista Networks
Copyright (c) 2013-2015, Arista Networks
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#
# useful targets:
# make sdist -- builds a source distribution
# make srpm -- builds a source rpm, input to mock
# make rpm -- builds a binary distribution
# make pylint -- source code checks
# make tests -- run the tests
# make test_server -- run all server tests (including neighbordb)
Expand Down Expand Up @@ -41,6 +43,18 @@ clean:
rm -rf MANIFEST
@echo "Cleaning up byte compiled python stuff"
find . -type f -regex ".*\.py[co]$$" -delete
@echo "Cleaning up rpmbuild stuff"
$(MAKE) -C rpm clean

.PHONY: rpm srpm
rpm: sdist
$(MAKE) -C rpm rpm-pkg

srpm: sdist
$(MAKE) -C rpm srpm-pkg

ztpserver.spec:
$(MAKE) -C rpm ../ztpserver.spec

test_neighbordb: clean
PYTHONPATH=./ $(PYTHON) ./test/server/test_ndb.py -v
Expand Down Expand Up @@ -74,5 +88,5 @@ python:
install:
$(PYTHON) setup.py install

sdist: clean
sdist: clean ztpserver.spec
$(PYTHON) setup.py sdist
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4
1.3.2
2 changes: 1 addition & 1 deletion actions/add_config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/copy_file
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/install_cli_plugin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/install_extension
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/install_image
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/replace_config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/run_bash_script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/run_cli_commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/send_email
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion actions/the_nick
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions client/bootstrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -864,7 +864,7 @@ class Server(object):
headers=headers)

log('Server response to GET config: contents=%s' % result.json())

status = result.status_code
content = result.headers['content-type'].split(';')[0]
if(status != HTTP_STATUS_OK or
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion conf/ztpserver.wsgi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, Arista Networks, Inc.
# Copyright (c) 2015, Arista Networks, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
34 changes: 34 additions & 0 deletions docs/ReleaseNotes1.3.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Release 1.3.2
-------------

(Published March, 2015)

The authoritative state for any known issue can be found in `GitHub issues <https://github.com/arista-eosplus/ztpserver/issues>`_.

Bug fixes
^^^^^^^^^

* Prevented .node file from becoming corrupted on the server (`298 <https://github.com/arista-eosplus/ztpserver/issues/298>`_)
.. comment
* Added .node filename to server-side logs (`297 <https://github.com/arista-eosplus/ztpserver/issues/297>`_)
.. comment
* Change ``refresh_ztps`` script default to "master"
Refresh_ztps will, by default, update the installation to the latest released version. Previously, the default was to the development branch which may still be accomplished with ``refresh_ztps --branch develop``.
* Fixes to RPM packaging:

- Quieted chcon during install (`295 <https://github.com/arista-eosplus/ ztpserver/issues/295>`_)
.. comment
- Fixed issue where config files may not be kept during upgrade (`296 <https://github.com/arista-eosplus/ ztpserver/issues/296>`_)
.. comment
- Fixed issue with native rpmbuild due to changes in handling VERSION (`294 <https://github.com/arista-eosplus/ ztpserver/issues/294>`_)
.. comment
* Documentation updates:

- Troubleshooting chapter (`272 <https://github.com/arista-eosplus/ ztpserver/issues/272>`_)
.. comment
- Additional content in the ZTP Server Cookbook (`289 <https://github.com/arista-eosplus/ ztpserver/issues/289>`_)
.. comment
- ZTP Server benchmarking results
.. comment
8 changes: 4 additions & 4 deletions docs/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ Actions

.. automodule:: actions.send_email
:members:

:mod:`run_bash_script`
-----------------
----------------------

.. automodule:: actions.run_bash_script
:members:

:mod:`run_cli_commands`
-----------------
-----------------------

.. automodule:: actions.run_cli_commands
:members:
Expand Down
15 changes: 11 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# serve to show the default.

import sys, os
import re
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

Expand Down Expand Up @@ -60,16 +61,22 @@

# General information about the project.
project = u'ZTPServer'
copyright = u'2014, Arista Networks' # pylint: disable=W0622
copyright = u'2015, Arista Networks' # pylint: disable=W0622

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.2.0'
#version = '1.2.0'
# The full version, including alpha/beta/rc tags.
release = '1.2.0'
#release = '1.2.0'

release = open('../VERSION').read().split()[0].strip()
# Assume PEP 440 version strings
p = re.compile('(\d+!)?((\d+)(.\d+)*(.\d+)*)(.?[a|b|rc]\d*)?(.post\d*)?(.dev\d*)?', re.IGNORECASE)
vers = p.search(release)
version = vers.group(2)

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand All @@ -83,7 +90,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build', 'old', 'exts']
exclude_patterns = ['_build', 'old', 'exts', 'cookbook/_template.rst']

# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
Expand Down
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Static provisioning - overview

A node can be statically configured on the server as follows:

* create a new directory under ``[data_root]/nodes`, using the system's unique_id as the name
* create a new directory under ``[data_root]/nodes``, using the system's unique_id as the name
* create/symlink a *startup-config* or *definition* file in the newly-created folder
* if topology validation is enabled, also create/symlink a *pattern* file
* optionally, create *config-handler* script which is run whenever a PUT startup-config request succeeds
Expand Down
3 changes: 1 addition & 2 deletions docs/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ ZTPServer Cookbook
cookbook/definitions
cookbook/actions
cookbook/resourcePools
cookbook/templates
cookbook/troubleshooting
cookbook/advanced
cookbook/ztpsVMonEOS
2 changes: 1 addition & 1 deletion docs/cookbook/_template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Objective
Solution
^^^^^^^^

.. code-block:: <code type>
.. code-block:: codeType
(add code here - note the empty line above and below)
Expand Down
Loading

0 comments on commit 11e1cfb

Please sign in to comment.