Skip to content

Instantly share code, notes, and snippets.

View cmoberg's full-sized avatar

Carl Moberg cmoberg

  • Avassa
  • Stockholm, Sweden
View GitHub Profile
@cmoberg
cmoberg / delete-interface-xr.yaml
Created March 27, 2018 17:22
Remove an interface from an XR-device using the __absent keyword.
- name: Configure device
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: NSO global variables
include_vars:
file: nso.yaml
name: nso
- name: Configure device
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: NSO global variables
include_vars:
file: nso.yaml
name: nso
@cmoberg
cmoberg / configure-xr.yaml
Created March 22, 2018 14:00
Interface description change playbook
- name: Device configuration
nso_config:
url: "{{ nso.url }}"
username: "{{ nso.username }}"
password: "{{ nso.password }}"
data:
tailf-ncs:devices:
device:
- name: "{{ device }}"
tailf-ncs:config:

Keybase proof

I hereby claim:

  • I am cmoberg on github.
  • I am cmoberg (https://keybase.io/cmoberg) on keybase.
  • I have a public key whose fingerprint is 52E6 CBD9 52F7 290F 8FD8 BDB2 45A0 B600 8C88 9ECA

To claim this, I am signing this object: