summaryrefslogtreecommitdiff
path: root/test/integration/targets/prepare_iosxr_tests/tasks/main.yml
blob: 251506c71c269d6f68c02e1bd503eacc0f1c4a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: Ensure we have loopback 888 for testing
  iosxr_config:
    src: config.j2
  connection: network_cli

- name: Enable Netconf service
  iosxr_netconf:
    netconf_port: 830
    netconf_vrf: 'default'
    state: present
  connection: network_cli
  tags: netconf

# Some AWS hostnames can be longer than those allowed by the system we are testing
# Truncate the hostname
# http://jinja.pocoo.org/docs/2.9/templates/#truncate
- set_fact:
    shorter_hostname: '{{ inventory_hostname_short| truncate(10, True, "") }}'