mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-09-22 00:26:05 +08:00
update upstream name
This commit is contained in:
parent
83048147ba
commit
6829a2461f
|
@ -28,9 +28,9 @@ public class UpstreamsConf {
|
|||
}
|
||||
|
||||
public static String buildUpstreamName(Slb slb, VirtualServer vs, Group group) throws Exception{
|
||||
AssertUtils.assertNotNull(vs.getId(), "virtual server name is null!");
|
||||
AssertUtils.assertNotNull(group.getName(), "app name is null!");
|
||||
return "backend_" + group.getName();
|
||||
AssertUtils.assertNotNull(vs.getId(), "virtual server id is null!");
|
||||
AssertUtils.assertNotNull(group.getId(), "groupId not found!");
|
||||
return "backend_" + group.getId();
|
||||
}
|
||||
|
||||
public static String buildUpstreamConf(Slb slb, VirtualServer vs, Group group, String upstreamName, Set<String> allDownServers, Set<String> allUpGroupServers) throws Exception {
|
||||
|
|
Loading…
Reference in a new issue