Commit 779b3554 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: net_instnc for macfinder

parent 5c7f2545
Pipeline #158095 passed with stages
in 10 minutes and 55 seconds
...@@ -61,7 +61,7 @@ def create_job(): ...@@ -61,7 +61,7 @@ def create_job():
resp = requests.post(app.config.get('MACFINDER_SERVER_URL') + '/new_task', resp = requests.post(app.config.get('MACFINDER_SERVER_URL') + '/new_task',
cert=(app.config.get('MACFINDER_CERT'), app.config.get('MACFINDER_KEY')), cert=(app.config.get('MACFINDER_CERT'), app.config.get('MACFINDER_KEY')),
verify=app.config.get('MACFINDER_CA'), verify=app.config.get('MACFINDER_CA'),
data={'mac': request.json['mac'], 'vlan': vlan.id, 'tag_check': 'y'}) data={'mac': request.json['mac'], 'vlan': vlan.id, 'net_instnc': vlan.net_instnc, 'tag_check': 'y'})
if not resp.ok: if not resp.ok:
return jsonify({'success': False, 'error': 'internal_error'}), 500 return jsonify({'success': False, 'error': 'internal_error'}), 500
job_id = resp.json()['job_id'] job_id = resp.json()['job_id']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment