puglet

Untitled

Nov 14th, 2017
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.71 KB | None | 0 0
  1. ncp --vendor Cisco --type ASA --format json <<< "object-group network F5_Prod                      
  2. description Self IPs
  3. network-object host 192.168.1.1
  4. network-object host 192.168.1.2
  5. network-object host 192.168.1.3" | jq
  6.  
  7. [
  8.   {
  9.     "type": "object-group",
  10.     "config": [
  11.       {
  12.         "description": "Self IPs",
  13.         "group_members": [
  14.           {
  15.             "type": "host",
  16.             "ip": "192.168.1.1"
  17.           },
  18.           {
  19.             "type": "host",
  20.             "ip": "192.168.1.2"
  21.           },
  22.           {
  23.             "ip": "192.168.1.3",
  24.             "type": "host"
  25.           }
  26.         ],
  27.         "group_type": "network",
  28.         "name": "F5_Prod"
  29.       }
  30.     ]
  31.   }
  32. ]
Advertisement
Add Comment
Please, Sign In to add comment