1bgp { 2 3 # Those are the families the we are trying to negotiate with the peer 4 5 family classical-internet { 6 ipv4 [ 7 unicast 8 multicast 9 flow 10 ] 11 ipv6 [ 12 unicast 13 flow 14 ] 15 } 16 17 # Those are the capabilities we are trying to negotiate with the peer 18 capability default-capability { 19 # # added automatically 20 # family [ 21 # all 22 # ] 23 # default asn4 enable 24 # default aigp disable 25 # default operational disable 26 # default multi-session disable 27 # default route-refresh enable 28 # default graceful-restart disable 29 # default add-path disable 30 } 31 32 # Those are the capabilities we are trying t negotiate with the peer 33 capability classical-capability { 34 family classical-internet 35 asn4 enable 36 route-refresh enable 37 graceful-restart 60 38 } 39 40 session classical-ibgp { 41 router-id 127.0.0.1 42 hold-time 180 43 asn { 44 local 65500 45 peer 65500 46 } 47 capability classical-capability 48 } 49 50 session classical-ebgp { 51 router-id 10.0.0.1 52 hold-time 180 53 asn { 54 local 12345 55 peer 54321 56 } 57 capability { 58 family { 59 ipv4 [ 60 unicast 61 multicast 62 flow 63 ] 64 } 65 asn4 enable 66 route-refresh enable 67 graceful-restart 60 68 } 69 } 70 71 session default-ibgp { 72 router-id 127.0.0.1 73 hold-time 180 74 asn { 75 local 65500 76 peer 65500 77 } 78 capability classical-capability 79 } 80 81 session minimum-session { 82 asn { 83 local 65500 84 peer 65500 85 } 86 capability { 87 } 88 } 89 90 process second-log-to-syslog { 91 run "etc/exabgp/run/syslog-1.py with args" 92 encoder json # default text 93 received { 94 all [ 95 parsed 96 ] 97 } 98 } 99 100 # We want to send some information to the backend process 101 process first-log-to-syslog { 102 run "etc/exabgp/run/syslog-1.py with args" 103 encoder json # default text 104 received { 105 open [ 106 parsed # only the parsed open (if we can not parse it we can not start anyway) 107 ] 108 keepalive [ # only the raw (there is nothing to parse anyway) 109 packets 110 ] 111 update [ 112 packets # packets first 113 parsed # and parsed second, so if the parser barfs we still have the raw data 114 ] 115 notification [ 116 consolidated # simple message, want both in one json update 117 ] 118 } 119 sent { 120 packets 121 } 122 } 123 124 neighbor core-router-1 { 125 session classical-ibgp 126 tcp { 127 bind 82.219.212.34 128 connect 195.8.215.15 129 ttl-security disable 130 md5 "secret" 131 } 132 announce [ 133 local-routes 134 off-goes-the-ddos 135 ] 136 } 137 138# neighbor core-router-in-datacenter { 139# 140# } 141 142} 143 144bmp { 145} 146