~ubuntu-branches/ubuntu/raring/exabgp/raring

« back to all changes in this revision

Viewing changes to etc/exabgp/processes/dynamic-1.pl

  • Committer: Package Import Robot
  • Author(s): Henry-Nicolas Tourneur
  • Date: 2013-01-02 11:42:00 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130102114200-heowva4yrqiiukc5
Tags: 3.1.1-1

* New upstream release
* Closes: #687134 debconf abuse, notice of software behavior take places under
  NEWS.Debian, not in a debconf screen, information moved accordingly.
* Closes: #693338 Japanese translation removed since debconf template is out.
* Closes: #697178 Russian translation removed since debconf template is out.
* Closes: #689533 UCF-based conf added. 
  No more manual changes to exabgp.env, thanks to Federico Ceratto.
          

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use strict;
 
4
use warnings;
 
5
 
 
6
# Ignore Control C
 
7
# allow exabgp to send us a SIGTERM when it is time
 
8
$SIG{'INT'} = sub {};
 
9
 
 
10
# make STDOUT unbuffered
 
11
select STDOUT; $| = 1;
 
12
 
 
13
while (1) {
 
14
    # commands are case sensitive
 
15
    print "announce flow route {\\\\n match {\\\\n source 10.0.0.1/32;\\\\n destination 1.2.3.4/32;\\\\n }\\\\n then {\\\\n discard;\\\\n }\\\\n }\\\\n";
 
16
    sleep 10;
 
17
    print "announce route 192.0.2.1 next-hop 10.0.0.1";
 
18
    sleep 10;
 
19
    print "withdraw route 192.0.2.1 next-hop 10.0.0.1";
 
20
    sleep 10;
 
21
    print "withdraw flow route {\\\\n match {\\\\n source 10.0.0.1/32;\\\\n destination 1.2.3.4/32;\\\\n }\\\\n then {\\\\n discard;\\\\n }\\\\n }\\\\n";
 
22
    sleep 10;
 
23
}