Code Review
/
vpnservice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BgpManager commit for:
[vpnservice.git]
/
bgpmanager
/
bgpmanager-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
bgpmanager
/
thrift
/
client
/
implementation
/
BgpRouter.java
diff --git
a/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/thrift/client/implementation/BgpRouter.java
b/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/thrift/client/implementation/BgpRouter.java
index c10bb303b0307bf324acddab54c84b91c51343b6..82ac98d8c303b35a60516a9ed9cb0b01b4077904 100644
(file)
--- a/
bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/thrift/client/implementation/BgpRouter.java
+++ b/
bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/thrift/client/implementation/BgpRouter.java
@@
-145,7
+145,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void addNeighbor(String nbrIp, int nbrAsNum)
+ public
synchronized
void addNeighbor(String nbrIp, int nbrAsNum)
throws TException, BgpRouterException {
bop.type = ADD_NBR;
bop.nbrIp = nbrIp;
throws TException, BgpRouterException {
bop.type = ADD_NBR;
bop.nbrIp = nbrIp;
@@
-154,7
+154,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void delNeighbor(String nbrIp)
+ public
synchronized
void delNeighbor(String nbrIp)
throws TException, BgpRouterException {
bop.type = DEL_NBR;
bop.nbrIp = nbrIp;
throws TException, BgpRouterException {
bop.type = DEL_NBR;
bop.nbrIp = nbrIp;
@@
-162,7
+162,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void addVrf(String rd, List<String> irts, List<String> erts)
+ public
synchronized
void addVrf(String rd, List<String> irts, List<String> erts)
throws TException, BgpRouterException {
bop.type = ADD_VRF;
bop.rd = rd;
throws TException, BgpRouterException {
bop.type = ADD_VRF;
bop.rd = rd;
@@
-172,7
+172,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void delVrf(String rd)
+ public
synchronized
void delVrf(String rd)
throws TException, BgpRouterException {
bop.type = DEL_VRF;
bop.rd = rd;
throws TException, BgpRouterException {
bop.type = DEL_VRF;
bop.rd = rd;
@@
-180,7
+180,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void addPrefix(String rd, String prefix, String nexthop, int label)
+ public
synchronized
void addPrefix(String rd, String prefix, String nexthop, int label)
throws TException, BgpRouterException {
bop.type = ADD_PFX;
bop.rd = rd;
throws TException, BgpRouterException {
bop.type = ADD_PFX;
bop.rd = rd;
@@
-191,7
+191,7
@@
public class BgpRouter {
dispatch(bop);
}
dispatch(bop);
}
- public void delPrefix(String rd, String prefix)
+ public
synchronized
void delPrefix(String rd, String prefix)
throws TException, BgpRouterException {
bop.type = DEL_PFX;
bop.rd = rd;
throws TException, BgpRouterException {
bop.type = DEL_PFX;
bop.rd = rd;