-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from arista-eosplus/release-0.6.0
Release 0.6.0
- Loading branch information
Showing
9 changed files
with
126 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.0 | ||
0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
###### | ||
v0.6.0 | ||
###### | ||
|
||
2016-02-22 | ||
|
||
New Modules | ||
^^^^^^^^^^^ | ||
* None | ||
|
||
Enhancements | ||
^^^^^^^^^^^^ | ||
|
||
* Added support for multiline commands without having to pass them as a dictionary (`78 <https://github.com/arista-eosplus/pyeapi/pull/78>`_) [`dbarrosop <https://github.com/dbarrosop>`_] | ||
(See example below) | ||
|
||
.. code-block:: python | ||
>>> import pyeapi | ||
>>> connection = pyeapi.client.connect( | ||
... transport='https', | ||
... host='192.168.56.201', | ||
... username='vagrant', | ||
... password='vagrant', | ||
... port=443, | ||
... timeout=60 | ||
... ) | ||
>>> device = pyeapi.client.Node(connection) | ||
>>> device.run_commands('show hostname') | ||
[{u'hostname': u'localhost', u'fqdn': u'localhost'}] | ||
>>> device.run_commands('show banner login') | ||
[{u'loginBanner': u''}] | ||
>>> my_commands = [ | ||
... 'configure session whatever', | ||
... 'hostname new-hostname', | ||
... 'banner login MULTILINE:This is a new banner\nwith different lines!!!', | ||
... 'end' | ||
... ] | ||
>>> | ||
>>> device.run_commands(my_commands) | ||
[{}, {}, {}, {}] | ||
>>> print device.run_commands(['show session-config named whatever diffs'], encoding='text')[0]['output'] | ||
--- system:/running-config | ||
+++ session:/whatever-session-config | ||
@@ -3,6 +3,8 @@ | ||
! boot system flash:/vEOS-lab.swi | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
+! | ||
+hostname new-hostname | ||
! | ||
spanning-tree mode mstp | ||
! | ||
@@ -22,6 +24,11 @@ | ||
! | ||
no ip routing | ||
! | ||
+banner login | ||
+This is a new banner | ||
+with different lines!!! | ||
+EOF | ||
+! | ||
management api http-commands | ||
no shutdown | ||
! | ||
>>> device.run_commands(['configure session whatever', 'commit']) | ||
[{}, {}] | ||
>>> device.run_commands('show hostname') | ||
[{u'hostname': u'new-hostname', u'fqdn': u'new-hostname'}] | ||
>>> device.run_commands('show banner login') | ||
[{u'loginBanner': u'This is a new banner\nwith different lines!!!\n'}] | ||
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ Release Notes | |
release-notes-0.3.3.rst | ||
release-notes-0.4.0.rst | ||
release-notes-0.5.0.rst | ||
release-notes-0.6.0.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters