Advertisement
byt3_m3

ANSIBLE_JSON Structure

Sep 21st, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 11.57 KB | None | 0 0
  1. {
  2.     "ansible_facts": {
  3.         "ansible_net_all_ipv4_addresses": [
  4.             "10.0.0.1",
  5.             "10.0.13.1",
  6.             "10.0.12.1",
  7.             "10.0.15.1",
  8.             "10.0.14.1",
  9.             "155.0.0.1"
  10.         ],
  11.         "ansible_net_all_ipv6_addresses": [],
  12.         "ansible_net_config": "Building configuration...\n\nCurrent configuration : 2538 bytes\n!\n! Last configuration change at 21:23:01 UTC Mon Sep 18 2017 by ********\nversion 15.2\nservice timestamps debug datetime msec\nservice timestamps log datetime msec\nno service password-encryption\n!\nhostname CORE-R1\n!\nboot-start-marker\nboot-end-marker\n!\n!\nvrf definition MGMT\n !\n address-family ipv4\n exit-address-family\n!\n!\nno aaa new-model\nmmi polling-interval 60\nno mmi auto-configure\nno mmi pvc\nmmi snmp-timeout 180\nno ip icmp rate-limit unreachable\n!\n!\n!\n!\n!\n!\nno ip domain lookup\nip domain name local\nip cef\nno ipv6 cef\n!\nmultilink bundle-name authenticated\n!\n!\n!\n!\n!\n!\n!\n!\nusername ******** privilege 15 secret 4 tnhtc92DXBhelxjYk8LWJrPV36S2i4ntXrpb4RFmfqY\n!\nredundancy\n!\n!\nip tcp synwait-time 5\n! \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ninterface Loopback0\n description ROUTER-ID\n ip address 155.0.0.1 255.255.255.255\n ip ospf 1 area 0\n!\ninterface Ethernet0/0\n description Link to R2\n ip address 10.0.12.1 255.255.255.252\n ip ospf network point-to-point\n ip ospf 1 area 0\n!\ninterface Ethernet0/1\n description Link to R3\n ip address 10.0.13.1 255.255.255.252\n ip ospf network point-to-point\n ip ospf 1 area 0\n!\ninterface Ethernet0/2\n description Link to R4\n ip address 10.0.14.1 255.255.255.252\n ip ospf network point-to-point\n ip ospf 1 area 0\n!\ninterface Ethernet0/3\n description Link to R5\n ip address 10.0.15.1 255.255.255.252\n ip ospf network point-to-point\n ip ospf 1 area 0\n!\ninterface Ethernet1/0\n no ip address\n shutdown\n!\ninterface Ethernet1/1\n no ip address\n shutdown\n!\ninterface Ethernet1/2\n no ip address\n shutdown\n!\ninterface Ethernet1/3\n description Link to Ansible Controller\n vrf forwarding MGMT\n ip address 10.0.0.1 255.255.255.0\n!\ninterface Serial2/0\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial2/1\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial2/2\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial2/3\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial3/0\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial3/1\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial3/2\n no ip address\n shutdown\n serial restart-delay 0\n!\ninterface Serial3/3\n no ip address\n shutdown\n serial restart-delay 0\n!\nrouter ospf 1\n mpls ldp autoconfig\n!\nip forward-protocol nd\n!\n!\nno ip http server\nno ip http secure-server\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n!\n!\nline con 0\n exec-timeout 0 0\n privilege level 15\n logging synchronous\nline aux 0\nline vty 0 4\n exec-timeout 0 0\n privilege level 15\n logging synchronous\n login local\n transport input all\n!\n!\nend",
  13.         "ansible_net_filesystems": [
  14.             "system:"
  15.         ],
  16.         "ansible_net_gather_subset": [
  17.             "hardware",
  18.             "default",
  19.             "interfaces",
  20.             "config"
  21.         ],
  22.         "ansible_net_hostname": "CORE-R1",
  23.         "ansible_net_image": "unix:/opt/gns3/images/IOU/i86bi_linux-adventerprisek9-m-15.2.4M1.bin",
  24.         "ansible_net_interfaces": {
  25.             "Ethernet0": {
  26.                 "bandwidth": 10000,
  27.                 "description": "Link to R2",
  28.                 "duplex": null,
  29.                 "ipv4": {
  30.                     "address": "10.0.12.1",
  31.                     "masklen": 30
  32.                 },
  33.                 "lineprotocol": "up ",
  34.                 "macaddress": "aabb.cc00.0600",
  35.                 "mediatype": null,
  36.                 "mtu": 1500,
  37.                 "operstatus": "up",
  38.                 "type": "AmdP2"
  39.             },
  40.             "Ethernet0/1": {
  41.                 "bandwidth": 10000,
  42.                 "description": "Link to R3",
  43.                 "duplex": null,
  44.                 "ipv4": {
  45.                     "address": "10.0.13.1",
  46.                     "masklen": 30
  47.                 },
  48.                 "lineprotocol": "up ",
  49.                 "macaddress": "aabb.cc00.0610",
  50.                 "mediatype": null,
  51.                 "mtu": 1500,
  52.                 "operstatus": "up",
  53.                 "type": "AmdP2"
  54.             },
  55.             "Ethernet0/2": {
  56.                 "bandwidth": 10000,
  57.                 "description": "Link to R4",
  58.                 "duplex": null,
  59.                 "ipv4": {
  60.                     "address": "10.0.14.1",
  61.                     "masklen": 30
  62.                 },
  63.                 "lineprotocol": "up ",
  64.                 "macaddress": "aabb.cc00.0620",
  65.                 "mediatype": null,
  66.                 "mtu": 1500,
  67.                 "operstatus": "up",
  68.                 "type": "AmdP2"
  69.             },
  70.             "Ethernet0/3": {
  71.                 "bandwidth": 10000,
  72.                 "description": "Link to R5",
  73.                 "duplex": null,
  74.                 "ipv4": {
  75.                     "address": "10.0.15.1",
  76.                     "masklen": 30
  77.                 },
  78.                 "lineprotocol": "up ",
  79.                 "macaddress": "aabb.cc00.0630",
  80.                 "mediatype": null,
  81.                 "mtu": 1500,
  82.                 "operstatus": "up",
  83.                 "type": "AmdP2"
  84.             },
  85.             "Ethernet1/0": {
  86.                 "bandwidth": 10000,
  87.                 "description": null,
  88.                 "duplex": null,
  89.                 "ipv4": null,
  90.                 "lineprotocol": "down ",
  91.                 "macaddress": "aabb.cc00.0601",
  92.                 "mediatype": null,
  93.                 "mtu": 1500,
  94.                 "operstatus": "administratively down",
  95.                 "type": "AmdP2"
  96.             },
  97.             "Ethernet1/1": {
  98.                 "bandwidth": 10000,
  99.                 "description": null,
  100.                 "duplex": null,
  101.                 "ipv4": null,
  102.                 "lineprotocol": "down ",
  103.                 "macaddress": "aabb.cc00.0611",
  104.                 "mediatype": null,
  105.                 "mtu": 1500,
  106.                 "operstatus": "administratively down",
  107.                 "type": "AmdP2"
  108.             },
  109.             "Ethernet1/2": {
  110.                 "bandwidth": 10000,
  111.                 "description": null,
  112.                 "duplex": null,
  113.                 "ipv4": null,
  114.                 "lineprotocol": "down ",
  115.                 "macaddress": "aabb.cc00.0621",
  116.                 "mediatype": null,
  117.                 "mtu": 1500,
  118.                 "operstatus": "administratively down",
  119.                 "type": "AmdP2"
  120.             },
  121.             "Ethernet1/3": {
  122.                 "bandwidth": 10000,
  123.                 "description": "Link to Ansible Controller",
  124.                 "duplex": null,
  125.                 "ipv4": {
  126.                     "address": "10.0.0.1",
  127.                     "masklen": 24
  128.                 },
  129.                 "lineprotocol": "up ",
  130.                 "macaddress": "aabb.cc00.0631",
  131.                 "mediatype": null,
  132.                 "mtu": 1500,
  133.                 "operstatus": "up",
  134.                 "type": "AmdP2"
  135.             },
  136.             "Loopback0": {
  137.                 "bandwidth": 8000000,
  138.                 "description": "ROUTER-ID",
  139.                 "duplex": null,
  140.                 "ipv4": {
  141.                     "address": "155.0.0.1",
  142.                     "masklen": 32
  143.                 },
  144.                 "lineprotocol": "up ",
  145.                 "macaddress": "155.0.0.1/32",
  146.                 "mediatype": null,
  147.                 "mtu": 1514,
  148.                 "operstatus": "up",
  149.                 "type": null
  150.             },
  151.             "Serial2/0": {
  152.                 "bandwidth": 1544,
  153.                 "description": null,
  154.                 "duplex": null,
  155.                 "ipv4": null,
  156.                 "lineprotocol": "down ",
  157.                 "macaddress": null,
  158.                 "mediatype": null,
  159.                 "mtu": 1500,
  160.                 "operstatus": "administratively down",
  161.                 "type": null
  162.             },
  163.             "Serial2/1": {
  164.                 "bandwidth": 1544,
  165.                 "description": null,
  166.                 "duplex": null,
  167.                 "ipv4": null,
  168.                 "lineprotocol": "down ",
  169.                 "macaddress": null,
  170.                 "mediatype": null,
  171.                 "mtu": 1500,
  172.                 "operstatus": "administratively down",
  173.                 "type": null
  174.             },
  175.             "Serial2/2": {
  176.                 "bandwidth": 1544,
  177.                 "description": null,
  178.                 "duplex": null,
  179.                 "ipv4": null,
  180.                 "lineprotocol": "down ",
  181.                 "macaddress": null,
  182.                 "mediatype": null,
  183.                 "mtu": 1500,
  184.                 "operstatus": "administratively down",
  185.                 "type": null
  186.             },
  187.             "Serial2/3": {
  188.                 "bandwidth": 1544,
  189.                 "description": null,
  190.                 "duplex": null,
  191.                 "ipv4": null,
  192.                 "lineprotocol": "down ",
  193.                 "macaddress": null,
  194.                 "mediatype": null,
  195.                 "mtu": 1500,
  196.                 "operstatus": "administratively down",
  197.                 "type": null
  198.             },
  199.             "Serial3/0": {
  200.                 "bandwidth": 1544,
  201.                 "description": null,
  202.                 "duplex": null,
  203.                 "ipv4": null,
  204.                 "lineprotocol": "down ",
  205.                 "macaddress": null,
  206.                 "mediatype": null,
  207.                 "mtu": 1500,
  208.                 "operstatus": "administratively down",
  209.                 "type": null
  210.             },
  211.             "Serial3/1": {
  212.                 "bandwidth": 1544,
  213.                 "description": null,
  214.                 "duplex": null,
  215.                 "ipv4": null,
  216.                 "lineprotocol": "down ",
  217.                 "macaddress": null,
  218.                 "mediatype": null,
  219.                 "mtu": 1500,
  220.                 "operstatus": "administratively down",
  221.                 "type": null
  222.             },
  223.             "Serial3/2": {
  224.                 "bandwidth": 1544,
  225.                 "description": null,
  226.                 "duplex": null,
  227.                 "ipv4": null,
  228.                 "lineprotocol": "down ",
  229.                 "macaddress": null,
  230.                 "mediatype": null,
  231.                 "mtu": 1500,
  232.                 "operstatus": "administratively down",
  233.                 "type": null
  234.             },
  235.             "Serial3/3": {
  236.                 "bandwidth": 1544,
  237.                 "description": null,
  238.                 "duplex": null,
  239.                 "ipv4": null,
  240.                 "lineprotocol": "down ",
  241.                 "macaddress": null,
  242.                 "mediatype": null,
  243.                 "mtu": 1500,
  244.                 "operstatus": "administratively down",
  245.                 "type": null
  246.             }
  247.         },
  248.         "ansible_net_memfree_mb": 61954,
  249.         "ansible_net_memtotal_mb": 124582,
  250.         "ansible_net_model": null,
  251.         "ansible_net_neighbors": {
  252.             "null": [
  253.                 {
  254.                     "host": null,
  255.                     "port": null
  256.                 }
  257.             ]
  258.         },
  259.         "ansible_net_serialnum": "2048006",
  260.         "ansible_net_version": "15.2(4)M1"
  261.     },
  262.     "changed": false
  263. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement