Code Monkey home page Code Monkey logo

Comments (3)

rasmusbirkelund avatar rasmusbirkelund commented on August 17, 2024

Have you updated your git repo? It looks like there was a change in that file commited approx. 3 months ago which addresses that specific line.

from automation-scripts.

bccrew avatar bccrew commented on August 17, 2024

Have you updated your git repo? It looks like there was a change in that file commited approx. 3 months ago which addresses that specific line.

Hi

Yes, the export script works since I updated it to the latest. But the import script is still broken.

user@ubuntu:~/automation-scripts# python3 import_mx_l3.py -k ********************************* -n L_****************** -f mx_l3fw_rules__2023-05-03_12-58-40.csv
Reading file mx_l3fw_rules__2023-05-03_12-58-40.csv
{'policy': 'allow', 'protocol': 'udp', 'srcCidr': '10.0.0.1/32', 'srcPort': '80', 'destCidr': 'vpn.test.com/32', 'destPort': '443', 'comment': 'ALLOWTEST2', 'syslogEnabled': False}
{'policy': 'deny', 'protocol': 'icmp', 'srcCidr': 'VLAN(99)./32', 'srcPort': 'Any', 'destCidr': 'OBJ()/32', 'destPort': 'Any', 'comment': 'DENYTEST1', 'syslogEnabled': True}
{'policy': 'allow', 'protocol': 'Any', 'srcCidr': 'Any', 'srcPort': 'Any', 'destCidr': 'Any', 'destPort': 'Any', 'comment': 'Default rule', 'syslogEnabled': False}
Processed all 3 rules of file mx_l3fw_rules__2023-05-03_12-58-40.csv
2023-05-04 21:14:44 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.32.1', 'api_key': '
', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': True, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}
Attempting update/simulation of firewall rules to network L_

Traceback (most recent call last):
File "/user/automation-scripts/import_mx_l3.py", line 123, in
main(sys.argv[1:])
File "/user/automation-scripts/import_mx_l3.py", line 109, in main
m.mx_l3_firewall.updateNetworkL3FirewallRules(net_id, rules=fw_rules, syslogDefaultRule=default_logging)
AttributeError: 'DashboardAPI' object has no attribute 'mx_l3_firewall'

from automation-scripts.

mpapazog avatar mpapazog commented on August 17, 2024

Posted updated version of import_mx_l3.py. Please test if it fixes your issue

from automation-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.