Skip to content

Instantly share code, notes, and snippets.

@ktbyers
Created February 17, 2017 20:31
Show Gist options
  • Save ktbyers/cde7508645f161d40ab4dfece895fe58 to your computer and use it in GitHub Desktop.
Save ktbyers/cde7508645f161d40ab4dfece895fe58 to your computer and use it in GitHub Desktop.
---
- name: NAPALM vlan configuration
hosts: nxos2
gather_facts: False
tasks:
- napalm_install_config:
hostname: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
dev_os: nxos
config_file: bgp_config.txt
commit_changes: True
replace_config: False
diff_file: "{{ host }}.diff"
get_diffs: True
optional_args: {'nxos_protocol': 'https', 'port': 8443}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment