Skip to content

Instantly share code, notes, and snippets.

@jctanner
Last active January 10, 2019 20:32
Show Gist options
  • Select an option

  • Save jctanner/234eb151ab754abdcb2b25c1d91b33f7 to your computer and use it in GitHub Desktop.

Select an option

Save jctanner/234eb151ab754abdcb2b25c1d91b33f7 to your computer and use it in GitHub Desktop.
#BEFORE
/tmp/awx_153_KFri35/facts/ios_3 2019-01-10 20:29:49.347664346 +0000
/tmp/awx_153_KFri35/facts/ios_3: ASCII text, with very long lines, with no line terminators
#AFTER
/tmp/awx_153_KFri35/facts/ios_3 2019-01-10 20:29:54.890671627 +0000
/tmp/awx_153_KFri35/facts/ios_3: ASCII text
/tmp/awx_153_KFri35/facts/ios_3 2019-01-10 20:29:54.890671627 +0000
/tmp/awx_153_KFri35/facts/ios_3: ASCII text
{
"cdp_state": {
"interfaces": {
"interface": {
"GigabitEthernet0/0": {
"name": "GigabitEthernet0/0",
"neighbors": {
"neighbor": {
"an-iosl2-01.foobar.com": {
"id": "an-iosl2-01.foobar.com",
"state": {
"id": "an-iosl2-01.foobar.com",
"management-address": "10.8.38.75",
"management-address-v6": null,
"port-id": "GigabitEthernet0/0",
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"system-name": "an-iosl2-01.foobar.com"
}
},
"an-iosl2-02.foobar.com": {
"id": "an-iosl2-02.foobar.com",
"state": {
"id": "an-iosl2-02.foobar.com",
"management-address": "10.8.38.76",
"management-address-v6": null,
"port-id": "GigabitEthernet0/0",
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"system-name": "an-iosl2-02.foobar.com"
}
},
"switch02.foobar.com(tb000b0000b)": {
"id": "switch02.foobar.com(tb000b0000b)",
"state": {
"id": "switch02.foobar.com(tb000b0000b)",
"management-address": "10.8.38.74",
"management-address-v6": null,
"port-id": "mgmt0",
"system-description": null,
"system-name": "switch02.foobar.com(tb000b0000b)"
}
}
}
}
},
"GigabitEthernet0/1": {
"name": "GigabitEthernet0/1",
"neighbors": {
"neighbor": {
"an-iosl2-01.foobar.com": {
"id": "an-iosl2-01.foobar.com",
"state": {
"id": "an-iosl2-01.foobar.com",
"management-address": "10.8.38.75",
"management-address-v6": null,
"port-id": "GigabitEthernet0/2",
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"system-name": "an-iosl2-01.foobar.com"
}
}
}
}
}
}
}
}
}
/tmp/awx_153_KFri35/facts/ios_3 2019-01-10 20:29:49.347664346 +0000
/tmp/awx_153_KFri35/facts/ios_3: ASCII text, with very long lines, with no line terminators
{
"cdp_state": {
"interfaces": {
"interface": {
"GigabitEthernet0/1": {
"neighbors": {
"neighbor": {
"an-iosl2-01.foobar.com": {
"state": {
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"management-address": "10.8.38.75",
"port-id": "GigabitEthernet0/2",
"management-address-v6": null,
"id": "an-iosl2-01.foobar.com",
"system-name": "an-iosl2-01.foobar.com"
},
"id": "an-iosl2-01.foobar.com"
}
}
},
"name": "GigabitEthernet0/1"
},
"GigabitEthernet0/0": {
"neighbors": {
"neighbor": {
"an-iosl2-02.foobar.com": {
"state": {
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"management-address": "10.8.38.76",
"port-id": "GigabitEthernet0/0",
"management-address-v6": null,
"id": "an-iosl2-02.foobar.com",
"system-name": "an-iosl2-02.foobar.com"
},
"id": "an-iosl2-02.foobar.com"
},
"an-iosl2-01.foobar.com": {
"state": {
"system-description": "Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Experimental Version 15.2(20170321:233949) [mmen 101]",
"management-address": "10.8.38.75",
"port-id": "GigabitEthernet0/0",
"management-address-v6": null,
"id": "an-iosl2-01.foobar.com",
"system-name": "an-iosl2-01.foobar.com"
},
"id": "an-iosl2-01.foobar.com"
},
"switch02.foobar.com(tb000b0000b)": {
"state": {
"system-description": null,
"management-address": "10.8.38.74",
"port-id": "mgmt0",
"management-address-v6": null,
"id": "switch02.foobar.com(tb000b0000b)",
"system-name": "switch02.foobar.com(tb000b0000b)"
},
"id": "switch02.foobar.com(tb000b0000b)"
}
}
},
"name": "GigabitEthernet0/0"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment