Cisco-Reconfig

 view release on metacpan or  search on metacpan

t/indentbug.t  view on Meta::CPAN


# -----------------------------------------------------------------

$x = $config->get('controller T1 3/1');
ok($x->subs->text,<<END);
 framing esf
 clock source internal
 linecode b8zs
 description to abc
END

# -----------------------------------------------------------------

$x = $config->get('class-map match-all mpls-1');
ok($x->subs->text,<<END);
  match mpls experimental topmost 1 
END

# -----------------------------------------------------------------

$x = $config->get('class-map match-all mpls-5');
ok($x->subs->text,<<END);
  match mpls experimental topmost 5 
END

# -----------------------------------------------------------------

$x = $config->get('policy-map OutToP');
ok($x->alltext,<<END);
 policy-map OutToP
  class mpls-premium+
   priority percent 15
  class mpls-premium
   bandwidth percent 20
   random-detect
   random-detect precedence 3   776   1292 
  class mpls-standard
   bandwidth percent 16
   random-detect
   random-detect precedence 1   388   1292
END

# -----------------------------------------------------------------

$x = $config->get('interface Loopback0');
ok($x->subs->text,<<END);
 ip address 192.168.2.1 255.255.255.255
END


# -----------------------------------------------------------------


__DATA__
!
! Last configuration change at 22:19:05 GMT Wed Jun 4 2003 by xyz
! NVRAM config last updated at 22:19:05 GMT Wed Jun 4 2003 by xyz
!
version 12.2
no service pad
service tcp-keepalives-in
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service compress-config
!
hostname banana
!
boot system flash disk2:c7200-p-mz.122-15.T2.bin
logging queue-limit 100
enable secret 5 hahaha
!
clock timezone GMT 0
!
!
ip subnet-zero
no ip source-route
!
!
ip cef
ip tftp source-interface Loopback0
ip domain name company.com
ip name-server 192.168.1.2
!
no ip bootp server
ip vrf MyFavoriteVRF
 description This is my vrf -- something
 rd 65000:2000
 route-target export 65000:15000
 route-target import 65000:15000
!
mpls ldp logging neighbor-changes
mpls traffic-eng tunnels
no tag-switching ip propagate-ttl forwarded
tag-switching tdp router-id Loopback0
frame-relay switching
!
!
voice call carrier capacity active
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination 
!
!
mta receive maximum-recipients 0
!
!
controller T1 3/0
 framing esf
 clock source internal
 linecode b8zs
 channel-group 0 timeslots 1-3
 channel-group 1 timeslots 4-6
 description to xyz
!



( run in 2.873 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )