Skip to content

Commit

Permalink
Merge pull request #226 from lindycoder/arista-rollback
Browse files Browse the repository at this point in the history
Implement rollback on arista
  • Loading branch information
stephanerobert committed Oct 26, 2018
2 parents e900610 + 8f16586 commit cd36932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netman/adapters/switches/arista.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def _start_transaction(self):
def commit_transaction(self):
self.node.enable('write memory')

def rollback_transaction(self):
pass

def get_vlan(self, number):
try:
vlans_result, interfaces_result = self.node.enable(
Expand Down
3 changes: 3 additions & 0 deletions tests/adapters/switches/arista_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ def test_transactions_commit_write_memory(self):

self.switch.commit_transaction()

def test_transactions_rollback_does_nothing(self):
self.switch.rollback_transaction()


class AristaFactoryTest(unittest.TestCase):
def tearDown(self):
Expand Down

0 comments on commit cd36932

Please sign in to comment.