~charmers/charms/trusty/bird/trunk

« back to all changes in this revision

Viewing changes to templates/bird6.conf

  • Committer: Cory Benfield
  • Date: 2015-01-29 16:01:55 UTC
  • Revision ID: cory.benfield@metaswitch.com-20150129160155-lzfikgp865acfi45
Add IPv6 BGP support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Configure logging
 
2
log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
 
3
log stderr all;
 
4
#log "tmp" all;
 
5
 
 
6
# Override router ID
 
7
router id {{ router_id }};
 
8
 
 
9
 
 
10
filter import_kernel {
 
11
if ( net != 0.0.0.0/0 ) then {
 
12
   accept;
 
13
   }
 
14
reject;
 
15
}
 
16
 
 
17
# Turn on global debugging of all protocols
 
18
debug protocols all;
 
19
 
 
20
# This pseudo-protocol watches all interface up/down events.
 
21
protocol device {
 
22
  scan time 2;    # Scan interfaces every 10 seconds
 
23
}
 
24
 
 
25
{% for peer6 in bgp_peers6 %}
 
26
protocol bgp N{{ loop.index }} {
 
27
  description "{{ peer6 }}";
 
28
  local as 64511;
 
29
  neighbor {{ peer6 }} as 64511;
 
30
  multihop;
 
31
  rr client;
 
32
  import all;
 
33
  export all;
 
34
}
 
35
{% endfor %}
 
36