Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored May 2, 2024
1 parent 524f650 commit 723717b
Show file tree
Hide file tree
Showing 38 changed files with 149 additions and 174 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
## 1.1.0

See http://ztpserver.readthedocs.org/en/v1.1.0/ReleaseNotes1.1.html

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Arista EOS+ ZTPServer provides a community based implementation of a bootstrap s

Contributing Code
=================
Arista EOS+ ZTPServer provides all of its source available to anyone on Github at github.com/arista-eosplus/ztpserver. The project is freely available to anyone to fork and use in their own implementations. The Arista EOS+ community gladly accepts pull requests that add new features, enhance existing features or fix bugs.
Arista EOS+ ZTPServer provides all of its source available to anyone on Github at github.com/arista-eosplus/ztpserver. The project is freely available to anyone to fork and use in their own implementations. The Arista EOS+ community gladly accepts pull requests that add new features, enhance existing features or fix bugs.

All contributed code should be done using pull requests. Once a pull request is initiated, a member of the Arista EOS+ community will review the code and either accept it as is or provide feedback on things to change.
All contributed code should be done using pull requests. Once a pull request is initiated, a member of the Arista EOS+ community will review the code and either accept it as is or provide feedback on things to change.

As a procedural note, all pull requests that add new features and/or enhance the operation of ZTPServer are expected to have corresponding test cases with them. Pull requests will be not accepted without them.

Expand All @@ -16,7 +16,7 @@ Another available way to contribute to this project is to provide requests for f

Bugs
====
If you happen to find a bug with ZTPServer, please open an issue and flag it as a bug. In the issue description please provide details about what you were trying to do, any errors and/or tracebacks and any other information necessary to replicate the bug.
If you happen to find a bug with ZTPServer, please open an issue and flag it as a bug. In the issue description please provide details about what you were trying to do, any errors and/or tracebacks and any other information necessary to replicate the bug.

Contact
=======
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ $ sudo easy_install PyYaml
$ sudo make install
$ ztps
``````
``````
1 change: 0 additions & 1 deletion conf/bootstrap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
# ...
#
# See documentation for the detailed list of possible values.

1 change: 0 additions & 1 deletion conf/neighbordb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@
# ...
#
# See documentation for the detailed list of possible values.

4 changes: 2 additions & 2 deletions conf/ztpserver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ disable_topology_validation = False


[server]
# Note: this section only applies to using the standalone server. If
# Note: this section only applies to using the standalone server. If
# running under a WSGI server, these values are ignored

# Interface to which the server will bind to (0:0:0:0 will bind to
# Interface to which the server will bind to (0:0:0:0 will bind to
# all available IPv4 addresses on the local machine)
interface = 0.0.0.0

Expand Down
2 changes: 1 addition & 1 deletion conf/ztpserver.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import sys

from ztpserver.app import start_wsgiapp

sys.stdout.write('Starting ZTPServer...')
sys.stdout.write("Starting ZTPServer...")

application = start_wsgiapp()
# To enable debug output, use:
Expand Down
1 change: 0 additions & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ Building / Publishing Docs locally
* `make` \(default make target is now `make html`\)
* Open file://_build/html/index.html in your browser to view.
* Publish by copying `docs/_build/html/*` to the `gh-pages` branch
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ Documenting REST APIs
---------------------

REST APIs are documented via the [httpdomain](https://pythonhosted.org/sphinxcontrib-httpdomain/) plugin for sphinx.

7 changes: 3 additions & 4 deletions docs/ReleaseNotes1.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Enhancements
* V1.1.0 docs (`181 <https://github.com/arista-eosplus/ztpserver/pull/181>`_)
Documentation has been completely restructured and is now hosted at http://ztpserver.readthedocs.org/.
* refresh_ztps - util script to refresh ZTP Server installation (`177 <https://github.com/arista-eosplus/ztpserver/issues/177>`_)
/utils/refresh_ztps can be used in order to automatically refresh the installation of ZTP Server to the latest code on GitHub. This can be useful in order to pull bug fixes or run the latest version of various development branches.
/utils/refresh_ztps can be used in order to automatically refresh the installation of ZTP Server to the latest code on GitHub. This can be useful in order to pull bug fixes or run the latest version of various development branches.
* Et49 does not match Ethernet49 in neighbordb/pattern files (`172 <https://github.com/arista-eosplus/ztpserver/issues/172>`_)
The local interface in an interface pattern does not have to use the long interface name. For example, all of the following will be treated similarly: Et1, e1, et1, eth1, Eth1, ethernet1, Ethernet1.

Expand Down Expand Up @@ -100,8 +100,8 @@ Enhancements
“domain”*: <DOMAIN>,
“password”*: <PASSWORD>,
“nickname”: <NICKNAME>, // REMOVED
“rooms”*: [ <ROOM>, … ]
“msg_type”: [ “info” | “debug” ] // Optional, default “debug”
“rooms”*: [ <ROOM>, … ]
“msg_type”: [ “info” | “debug” ] // Optional, default “debug”

}
}
Expand Down Expand Up @@ -224,4 +224,3 @@ Resolved issues
.. comment
* fix issue with Pattern creation from neighbordb (`44 <https://github.com/arista-eosplus/ztpserver/issues/44>`_)
.. comment
3 changes: 1 addition & 2 deletions docs/ReleaseNotes1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Enhancements
s7056.lab.local - - [03/Nov/2014 21:05:33] "POST /nodes HTTP/1.1" 400 0

* Deal more gracefully with DNS/connectivity errors while trying to access remote syslog servers (`215 <https://github.com/arista-eosplus/ztpserver/issues/215>`_)
Logging errors (e.g. bogus destination) will not be automatically logged by the bootstrap script. In order to debug logging issues, simply uncomment the following lines in the bootstrap script:
Logging errors (e.g. bogus destination) will not be automatically logged by the bootstrap script. In order to debug logging issues, simply uncomment the following lines in the bootstrap script:
::

#---------------------------------SYSLOG----------------------
Expand Down Expand Up @@ -179,4 +179,3 @@ Fixed

* ZTPS server fails to write .node because lack of permissions (`126 <https://github.com/arista-eosplus/ztpserver/issues/126>`_)
.. comment
1 change: 0 additions & 1 deletion docs/ReleaseNotes1.3.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ Bug fixes
^^^^^^^^^

* fixes *pip* install/uninstall issues

1 change: 0 additions & 1 deletion docs/ReleaseNotes1.3.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ Bug fixes
.. comment
- ZTP Server benchmarking results
.. comment
7 changes: 3 additions & 4 deletions docs/ReleaseNotes1.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Enhancements
Validating definitions...
Validating /usr/share/ztpserver/definitions/leaf.definition... Ok!
Validating /usr/share/ztpserver/definitions/leaf-no_vars.definition... Ok!

Validating resources...
Validating /usr/share/ztpserver/resources/leaf_man_ip... Ok!
Validating /usr/share/ztpserver/resources/leaf_spine_ip...
Expand All @@ -40,11 +40,11 @@ Enhancements
10.0.0.53/24: null
dfdsf dsfsd
10.0.0.54/24: JPE14140273

Error:
while scanning a simple key
in "<string>", line 3, column 1:
dfdsf dsfsd
dfdsf dsfsd
could not found expected ':'
in "<string>", line 5, column 1:
10.0.0.54/24: JPE14140273
Expand Down Expand Up @@ -97,4 +97,3 @@ Bug fixes
logging:
xmpp:
...

2 changes: 0 additions & 2 deletions docs/ReleaseNotes1.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ Fixed
Known Caveats
^^^^^^^^^^^^^


1 change: 0 additions & 1 deletion docs/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ Actions
#
#.. automodule:: template
# :members:
14 changes: 7 additions & 7 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ provisioned.

Content-Type: application/json
{
“model”*: <MODEL_NAME>,
“serialnumber”*: <SERIAL_NUMBER>,
“model”*: <MODEL_NAME>,
“serialnumber”*: <SERIAL_NUMBER>,
“systemmac”*: <SYSTEM_MAC>,
“version”*: <INTERNAL_VERSION>,
“version”*: <INTERNAL_VERSION>,
“neighbors”*: {
<INTERFACE_NAME(LOCAL)>: [ {
'device': <DEVICE_NAME>,
'device': <DEVICE_NAME>,
'remote_interface': <INTERFACE_NAME(REMOTE)>
} ]
},
},
}
**Note**: \* Items are mandatory (even if value is empty list/dict)
Expand All @@ -148,7 +148,7 @@ provisioned.

Status: 201 Created OR 409 Conflict will both return:

.. sourcecode:: http
.. sourcecode:: http

Content-Type: text/html
Location: <url>
Expand Down Expand Up @@ -233,7 +233,7 @@ This is used to retrieve the startup-config that was backed-up from a node to th

Status: 201 Created OR 409 Conflict will both return:

.. sourcecode:: http
.. sourcecode:: http

Content-Type: text/plain
<startup-config contents>
Expand Down
1 change: 0 additions & 1 deletion docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ Bootstrap Client

.. autoclass:: Node
:members:

Loading

0 comments on commit 723717b

Please sign in to comment.