-
Notifications
You must be signed in to change notification settings - Fork 1
/
qbgp.thrift
43 lines (37 loc) · 1.38 KB
/
qbgp.thrift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
struct Update {
1: i32 type,
2: i32 reserved,
3: i32 prefixlen,
4: i32 label,
5: string rd,
6: string prefix,
7: string nexthop
}
struct Routes {
1: i32 errcode,
2: optional list<Update> updates,
4: optional i32 more
}
service BgpConfigurator {
i32 startBgpServer(1:i32 asNumber, 2:string routerId, 3: i32 port,
4:i32 holdTime, 5:i32 keepAliveTime),
i32 stopBgpServer(),
i32 createPeer(1:string neighborIpAddress, 2:i32 asNumber),
i32 deletePeer(1:string neighborIpAddress),
i32 addRouteMapToMPBGPPeer(1:string neighborIpAddress),
i32 deleteRouteMapToMPBGPPeer(1:string neighborIpAddress),
i32 addVrf(1:string rd, 2:list<string> irts, 3:list<string> erts),
i32 delVrf(1:string rd),
i32 pushRoute(1:string prefix, 2:i32 vpnNum, 3:string neighborIpAddress),
i32 withdrawRoute(1:string prefix, 2:i32 vpnNum, 3:string neighborIpAddress),
Routes getRoutes(1:i32 optype, 2:i32 winSize),
string getRouteTarget(1:string prefix)
}
service BgpUpdater {
oneway void onUpdatePushRoute(1:string rd, 2:string prefix,
3:i32 prefixlen, 4:string nexthop,
5:i32 label),
oneway void onUpdateWithdrawRoute(1:string rd, 2:string prefix,
3:i32 prefixlen),
oneway void onStartConfigResyncNotification()
}