-
-
Save tcuthbert/98870177c7a446c4facb to your computer and use it in GitHub Desktop.
trigger issue #252 testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@3f913c158285:/etc/trigger# /etc/trigger/bin/gnng r1.demo.local | |
/etc/trigger/trigger/changemgmt/bounce.py:44: RuntimeWarning: Bounce mappings could not be found in /etc/trigger/bounce.py. using default! | |
warnings.warn(msg, RuntimeWarning) | |
/etc/trigger/trigger/acl/autoacl.py:47: RuntimeWarning: Function autoacl() could not be found in /etc/trigger/autoacl.py, using default! | |
warnings.warn(msg, RuntimeWarning) | |
DEVICE: r1.demo.local | |
Interface | Addresses | Subnets | ACLs IN | ACLs OUT | Description | |
------------------------------------------------------------------------------- | |
GigabitEthernet1 | 10.20.1.10 | 10.20.1.0/24 | TEST-ME | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sending build context to Docker daemon 557.1 kB | |
Sending build context to Docker daemon 1.114 MB | |
Sending build context to Docker daemon 1.671 MB | |
Sending build context to Docker daemon 2.228 MB | |
Sending build context to Docker daemon 2.785 MB | |
Sending build context to Docker daemon 3.342 MB | |
Sending build context to Docker daemon 3.899 MB | |
Sending build context to Docker daemon 3.98 MB | |
Step 1 : FROM ubuntu:14.04 | |
---> e17b56e5200a | |
Step 2 : MAINTAINER thomas cuthbert | |
---> Using cache | |
---> 8e31879c0e2f | |
Step 3 : RUN apt-get update -y && apt-get install -y redis-server libpq-dev python-dev python-setuptools build-essential git | |
---> Using cache | |
---> db39839839f9 | |
Step 4 : RUN easy_install pip | |
---> Using cache | |
---> f7b3bc43dbcf | |
Step 5 : COPY ./requirements.txt /requirements.txt | |
---> Using cache | |
---> 747c2f4cbaf0 | |
Step 6 : RUN pip install -r /requirements.txt | |
---> Using cache | |
---> b205326793ab | |
Step 7 : COPY trigger /etc/trigger | |
---> Using cache | |
---> df04a0107856 | |
Step 8 : WORKDIR /etc/trigger | |
---> Using cache | |
---> 9a465cf1111f | |
Step 9 : COPY ./conf /conf | |
---> Using cache | |
---> 513792eb4938 | |
Step 10 : COPY ./hosts /tmp/hosts_to_inject | |
---> Using cache | |
---> 3bec4b49a918 | |
Step 11 : COPY ./tests /tests | |
---> Using cache | |
---> e2418c569a0c | |
Step 12 : COPY ./docker-entrypoint.sh / | |
---> Using cache | |
---> 43b887ed8865 | |
Step 13 : ENTRYPOINT /bin/bash /docker-entrypoint.sh | |
---> Using cache | |
---> bd40219fc4e7 | |
Successfully built bd40219fc4e7 | |
trigger | |
/etc/trigger/trigger/changemgmt/bounce.py:44: RuntimeWarning: Bounce mappings could not be found in /etc/trigger/bounce.py. using default! | |
warnings.warn(msg, RuntimeWarning) | |
/etc/trigger/trigger/acl/autoacl.py:47: RuntimeWarning: Function autoacl() could not be found in /etc/trigger/autoacl.py, using default! | |
warnings.warn(msg, RuntimeWarning) | |
Results: | |
{'r1.demo.local': {'show inventory': 'NAME: "Chassis", DESCR: "Cisco CSR1000V Chassis"\r\nPID: CSR1000V , VID: V00, SN: 9G0T83AE5II\r\n\r\nNAME: "module R0", DESCR: "Cisco CSR1000V Route Processor"\r\nPID: CSR1000V , VID: V00, SN: JAB1303001C\r\n\r\nNAME: "module F0", DESCR: "Cisco CSR1000V Embedded Services Processor"\r\nPID: CSR1000V , VID: , SN: \r\n\r\n\r\n', 'show run | in cisco': 'username cisco secret 5 $1$zh1E$8GjiAf7YYDFPkLBYWMgpI0\r\n', 'show version': 'Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S, RELEASE SOFTWARE (fc2)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Wed 26-Mar-14 21:09 by mcpre\r\n\r\n\r\nCisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.\r\nAll rights reserved. Certain components of Cisco IOS-XE software are\r\nlicensed under the GNU General Public License ("GPL") Version 2.0. The\r\nsoftware code licensed under GPL Version 2.0 is free software that comes\r\nwith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such\r\nGPL code under the terms of GPL Version 2.0. For more details, see the\r\ndocumentation or "License Notice" file accompanying the IOS-XE software,\r\nor the applicable URL provided on the flyer accompanying the IOS-XE\r\nsoftware.\r\n\r\n\r\nROM: IOS-XE ROMMON\r\n\r\nR1 uptime is 32 minutes\r\nUptime for this control processor is 33 minutes\r\nSystem returned to ROM by reload\r\nSystem image file is "bootflash:packages.conf"\r\nLast reload reason: <NULL>\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\nLicense Level: limited\r\nLicense Type: Default. No valid license found.\r\nNext reload license Level: limited\r\n\r\ncisco CSR1000V (VXE) processor with 804580K/6147K bytes of memory.\r\nProcessor board ID 9G0T83AE5II\r\n4 Gigabit Ethernet interfaces\r\n32768K bytes of non-volatile configuration memory.\r\n2097152K bytes of physical memory.\r\n7774207K bytes of virtual hard disk at bootflash:.\r\n\r\nConfiguration register is 0x2102\r\n\r\n', 'show ip int brief': 'Interface IP-Address OK? Method Status Protocol\r\nGigabitEthernet1 10.20.1.10 YES NVRAM up up \r\nGigabitEthernet2 unassigned YES NVRAM administratively down down \r\nGigabitEthernet3 unassigned YES NVRAM administratively down down \r\nGigabitEthernet4 unassigned YES NVRAM administratively down down \r\n', 'show clock': '*17:21:44.831 UTC Sat Mar 5 2016\r\n'}} | |
r1.demo.local {'show inventory': 'NAME: "Chassis", DESCR: "Cisco CSR1000V Chassis"\r\nPID: CSR1000V , VID: V00, SN: 9G0T83AE5II\r\n\r\nNAME: "module R0", DESCR: "Cisco CSR1000V Route Processor"\r\nPID: CSR1000V , VID: V00, SN: JAB1303001C\r\n\r\nNAME: "module F0", DESCR: "Cisco CSR1000V Embedded Services Processor"\r\nPID: CSR1000V , VID: , SN: \r\n\r\n\r\n', 'show run | in cisco': 'username cisco secret 5 $1$zh1E$8GjiAf7YYDFPkLBYWMgpI0\r\n', 'show version': 'Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S, RELEASE SOFTWARE (fc2)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Wed 26-Mar-14 21:09 by mcpre\r\n\r\n\r\nCisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.\r\nAll rights reserved. Certain components of Cisco IOS-XE software are\r\nlicensed under the GNU General Public License ("GPL") Version 2.0. The\r\nsoftware code licensed under GPL Version 2.0 is free software that comes\r\nwith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such\r\nGPL code under the terms of GPL Version 2.0. For more details, see the\r\ndocumentation or "License Notice" file accompanying the IOS-XE software,\r\nor the applicable URL provided on the flyer accompanying the IOS-XE\r\nsoftware.\r\n\r\n\r\nROM: IOS-XE ROMMON\r\n\r\nR1 uptime is 32 minutes\r\nUptime for this control processor is 33 minutes\r\nSystem returned to ROM by reload\r\nSystem image file is "bootflash:packages.conf"\r\nLast reload reason: <NULL>\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\nLicense Level: limited\r\nLicense Type: Default. No valid license found.\r\nNext reload license Level: limited\r\n\r\ncisco CSR1000V (VXE) processor with 804580K/6147K bytes of memory.\r\nProcessor board ID 9G0T83AE5II\r\n4 Gigabit Ethernet interfaces\r\n32768K bytes of non-volatile configuration memory.\r\n2097152K bytes of physical memory.\r\n7774207K bytes of virtual hard disk at bootflash:.\r\n\r\nConfiguration register is 0x2102\r\n\r\n', 'show ip int brief': 'Interface IP-Address OK? Method Status Protocol\r\nGigabitEthernet1 10.20.1.10 YES NVRAM up up \r\nGigabitEthernet2 unassigned YES NVRAM administratively down down \r\nGigabitEthernet3 unassigned YES NVRAM administratively down down \r\nGigabitEthernet4 unassigned YES NVRAM administratively down down \r\n', 'show clock': '*17:21:44.831 UTC Sat Mar 5 2016\r\n'} | |
show inventory | |
show run | in cisco | |
show version | |
show ip int brief | |
show clock | |
Struct Results: | |
{'r1.demo.local': {'show inventory': {'sn': ['9G0T83AE5II', 'JAB1303001C', ''], 'pid': ['CSR1000V', 'CSR1000V', 'CSR1000V'], 'name': ['Chassis', 'module R0', 'module F0'], 'vid': ['V00', 'V00', ''], 'descr': ['Cisco CSR1000V Chassis', 'Cisco CSR1000V Route Processor', 'Cisco CSR1000V Embedded Services Processor']}, 'show version': {'hardware': ['CSR1000V'], 'running_image': ['packages.conf'], 'version': ['15.4(2)S'], 'serial': [''], 'hostname': ['R1'], 'uptime': ['32 minutes'], 'config_register': ['0x2102']}, 'show ip int brief': {'status': ['up', 'administratively down', 'administratively down', 'administratively down'], 'intf': ['GigabitEthernet1', 'GigabitEthernet2', 'GigabitEthernet3', 'GigabitEthernet4'], 'ipaddr': ['10.20.1.10', 'unassigned', 'unassigned', 'unassigned'], 'proto': ['up', 'down', 'down', 'down']}, 'show clock': {'dayweek': ['Sat'], 'time': ['17:21:44.831'], 'timezone': ['UTC'], 'year': ['2016'], 'day': ['5'], 'month': ['Mar']}}} | |
r1.demo.local | |
show inventory | |
show version | |
show ip int brief | |
show clock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment