Advertisement
puglet

Untitled

Nov 14th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.31 KB | None | 0 0
  1. ncp --vendor Cisco --type ASA --format raw <<< "route OUT 172.16.20.0 255.255.255.0 1.1.1.1 1
  2. route DMZ 172.16.39.0 255.255.255.128 1.1.2.1 1
  3. route IN 172.16.2.32 255.255.255.240 1.1.3.1 1"
  4.  
  5. $VAR1 = [
  6.           {
  7.             'type' => 'route',
  8.             'config' => {
  9.                           'destination' => '172.16.20.0/255.255.255.0',
  10.                           'next_hop' => '1.1.1.1',
  11.                           'interface' => 'OUT',
  12.                           'metric' => '1',
  13.                           'track_id' => ''
  14.                         }
  15.           },
  16.           {
  17.             'type' => 'route',
  18.             'config' => {
  19.                           'destination' => '172.16.39.0/255.255.255.128',
  20.                           'next_hop' => '1.1.2.1',
  21.                           'metric' => '1',
  22.                           'interface' => 'DMZ',
  23.                           'track_id' => ''
  24.                         }
  25.           },
  26.           {
  27.             'config' => {
  28.                           'next_hop' => '1.1.3.1',
  29.                           'interface' => 'IN',
  30.                           'metric' => '1',
  31.                           'destination' => '172.16.2.32/255.255.255.240',
  32.                           'track_id' => ''
  33.                         },
  34.             'type' => 'route'
  35.           }
  36.         ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement