Ansible (IT automation) with Nokia (Alcatel-Lucent) SR OS and Cisco IOS XR

Anton Karneliuk. IT & Network Expert / Architect / Manager; Project Manager; Entrepreneur; 2x CCIE (RS/SP) #49412; MSc Telecommunications.

Leave a Reply

Comment as a guest.

  1. Hello Anton,

    I received error while running the .tml scripts on nokia SR release 14.0..
    I have Ansible 2.3.2.0 with python 2.7.5 running on centos 7.3.

    I would appreciate your comments and guide.

  2. More output details below:::

    [root@localhost ~]#
    [root@localhost ~]# python –version
    Python 2.7.5
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]# cat /etc/redhat-release
    CentOS Linux release 7.3.1611 (Core)
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]# ansible –version
    ansible 2.3.2.0
    config file =
    configured module search path = Default w/o overrides
    python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]# ansible-doc –list | egrep ^’sros’
    sros_command Run commands on remote devices running Nokia SR OS
    sros_config Manage Nokia SR OS device configuration
    sros_rollback Configure Nokia SR OS rollback
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]#
    [root@localhost ~]# cd /home/aaa/ansible_test_scripts/
    062_ansible_nokia_cisco_2.tar ansible_test_scripts/
    [root@localhost ~]# cd /home/aaa/ansible_test_scripts/ansible_test_scripts/
    [root@localhost ansible_test_scripts]# ll
    total 24
    -rw-r–r–. 1 root root 610 Nov 28 2016 cisco_check_rib.yml
    -rw-r–r–. 1 root root 3389 Dec 5 2016 cisco_ip_vpn.yml
    -rw-r–r–. 1 root root 2404 Aug 21 23:43 cisco_new_ip_vpn.yml
    drwxr-xr-x. 2 root root 64 Dec 4 2016 login
    drwxr-xr-x. 2 root root 66 Dec 4 2016 nodes
    -rw-r–r–. 1 root root 615 Nov 28 2016 nokia_check_rib.yml
    -rw-r–r–. 1 root root 3919 Dec 4 2016 nokia_ip_vpn.yml
    -rw-r–r–. 1 root root 2013 Aug 21 23:22 nokia_new_ip_vpn.yml
    drwxr-xr-x. 2 root root 29 Dec 3 2016 services
    [root@localhost ansible_test_scripts]#
    [root@localhost ansible_test_scripts]# ansible-playbook nokia_new_ip_vpn.yml

    PLAY [nokia] **************************************************************************************************************************************************************************************************

    TASK [GLOBAL / prepare port] **********************************************************************************************************************************************************************************
    changed: [192.168.1.102]
    changed: [192.168.1.101]

    TASK [SERVICE / create and configure customer] ****************************************************************************************************************************************************************
    fatal: [192.168.1.101]: FAILED! => {“changed”: false, “command”: “customer 100500 create”, “failed”: true, “msg”: “timeout trying to send command: customer 100500 create”, “rc”: 1}
    fatal: [192.168.1.102]: FAILED! => {“changed”: false, “command”: “customer 100500 create”, “failed”: true, “msg”: “timeout trying to send command: customer 100500 create”, “rc”: 1}
    to retry, use: –limit @/home/aaa/ansible_test_scripts/ansible_test_scripts/nokia_new_ip_vpn.retry

    PLAY RECAP ****************************************************************************************************************************************************************************************************
    192.168.1.101 : ok=1 changed=1 unreachable=0 failed=1
    192.168.1.102 : ok=1 changed=1 unreachable=0 failed=1

    [root@localhost ansible_test_scripts]#
    [root@localhost ansible_test_scripts]#
    [root@localhost ansible_test_scripts]#

    Awaiting your response.
    Regards, Stephen

Read Next

Sliding Sidebar