Skip to content

Commit

Permalink
Fix bug introduced in 0.8.0
Browse files Browse the repository at this point in the history
The small refactor in 0.8.0 broke the Arista backend
This should fix things again, may be a better way of working this
variable out though.
  • Loading branch information
JustinAzoff committed Feb 23, 2018
1 parent 4d5250c commit 99f013e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dumbno.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ def add_acl(self, src=None, dst=None, proto="ip", sport=None, dport=None):
if rule in self.all_rules:
return False

cmdfamily = 'ip'
if src or dst:
cmdfamily = ip_family(src or dst)
elif proto in ('ip', 'ipv6'):
cmdfamily = proto

cmds = [
"enable",
"configure",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='dumbno',
version='0.8.0',
version='0.8.1',
zip_safe=True,
py_modules = ["dumbno"],
install_requires=[
Expand Down

0 comments on commit 99f013e

Please sign in to comment.