3636public class DomainRouterVO extends VMInstanceVO implements VirtualRouter {
3737 @ Column (name ="element_id" )
3838 private long elementId ;
39-
39+
4040 @ Column (name ="public_ip_address" )
4141 private String publicIpAddress ;
42-
42+
4343 @ Column (name ="public_mac_address" )
4444 private String publicMacAddress ;
45-
45+
4646 @ Column (name ="public_netmask" )
4747 private String publicNetmask ;
4848
4949 @ Column (name ="is_redundant_router" )
5050 boolean isRedundantRouter ;
51-
51+
5252 @ Column (name ="priority" )
5353 int priority ;
54-
54+
5555 @ Column (name ="is_priority_bumpup" )
5656 boolean isPriorityBumpUp ;
57-
57+
5858 @ Column (name ="redundant_state" )
5959 @ Enumerated (EnumType .STRING )
6060 private RedundantState redundantState ;
61-
61+
6262 @ Column (name ="stop_pending" )
6363 boolean stopPending ;
64-
64+
6565 @ Column (name ="role" )
6666 @ Enumerated (EnumType .STRING )
6767 private Role role = Role .VIRTUAL_ROUTER ;
68-
68+
6969 @ Column (name ="template_version" )
7070 private String templateVersion ;
71-
71+
7272 @ Column (name ="scripts_version" )
7373 private String scriptsVersion ;
74-
74+
7575 @ Column (name ="vpc_id" )
7676 private Long vpcId ;
77-
77+
7878 public DomainRouterVO (long id ,
7979 long serviceOfferingId ,
8080 long elementId ,
@@ -99,7 +99,7 @@ public DomainRouterVO(long id,
9999 this .stopPending = stopPending ;
100100 this .vpcId = vpcId ;
101101 }
102-
102+
103103 public DomainRouterVO (long id ,
104104 long serviceOfferingId ,
105105 long elementId ,
@@ -146,94 +146,94 @@ public void setPublicNetmask(String publicNetmask) {
146146 public long getDataCenterIdToDeployIn () {
147147 return dataCenterIdToDeployIn ;
148148 }
149-
149+
150150 public String getPublicNetmask () {
151151 return publicNetmask ;
152152 }
153-
153+
154154 public String getPublicMacAddress () {
155155 return publicMacAddress ;
156156 }
157-
157+
158158 protected DomainRouterVO () {
159159 super ();
160160 }
161-
161+
162162 @ Override
163163 public String getPublicIpAddress () {
164164 return publicIpAddress ;
165165 }
166-
167- @ Override
168- public Role getRole () {
169- return role ;
170- }
171-
172- public void setRole (Role role ) {
173- this .role = role ;
174- }
175-
176- @ Override
177- public boolean getIsRedundantRouter () {
178- return this .isRedundantRouter ;
179- }
180-
181- public void setIsRedundantRouter (boolean isRedundantRouter ) {
182- this .isRedundantRouter = isRedundantRouter ;
183- }
184-
185- @ Override
186- public long getServiceOfferingId () {
187- return serviceOfferingId ;
188- }
189-
190- public int getPriority () {
191- return this .priority ;
192- }
193-
194- public void setPriority (int priority ) {
195- this .priority = priority ;
196- }
197-
198- @ Override
199- public RedundantState getRedundantState () {
200- return this .redundantState ;
201- }
202-
203- public void setRedundantState (RedundantState redundantState ) {
204- this .redundantState = redundantState ;
205- }
206-
207- public boolean getIsPriorityBumpUp () {
208- return this .isPriorityBumpUp ;
209- }
210-
211- public void setIsPriorityBumpUp (boolean isPriorityBumpUp ) {
212- this .isPriorityBumpUp = isPriorityBumpUp ;
213- }
214166
215167 @ Override
216- public boolean isStopPending () {
217- return this .stopPending ;
218- }
168+ public Role getRole () {
169+ return role ;
170+ }
171+
172+ public void setRole (Role role ) {
173+ this .role = role ;
174+ }
175+
176+ @ Override
177+ public boolean getIsRedundantRouter () {
178+ return this .isRedundantRouter ;
179+ }
180+
181+ public void setIsRedundantRouter (boolean isRedundantRouter ) {
182+ this .isRedundantRouter = isRedundantRouter ;
183+ }
219184
220185 @ Override
221- public void setStopPending (boolean stopPending ) {
222- this .stopPending = stopPending ;
223- }
224-
186+ public long getServiceOfferingId () {
187+ return serviceOfferingId ;
188+ }
189+
190+ public int getPriority () {
191+ return this .priority ;
192+ }
193+
194+ public void setPriority (int priority ) {
195+ this .priority = priority ;
196+ }
197+
198+ @ Override
199+ public RedundantState getRedundantState () {
200+ return this .redundantState ;
201+ }
202+
203+ public void setRedundantState (RedundantState redundantState ) {
204+ this .redundantState = redundantState ;
205+ }
206+
207+ public boolean getIsPriorityBumpUp () {
208+ return this .isPriorityBumpUp ;
209+ }
210+
211+ public void setIsPriorityBumpUp (boolean isPriorityBumpUp ) {
212+ this .isPriorityBumpUp = isPriorityBumpUp ;
213+ }
214+
215+ @ Override
216+ public boolean isStopPending () {
217+ return this .stopPending ;
218+ }
219+
220+ @ Override
221+ public void setStopPending (boolean stopPending ) {
222+ this .stopPending = stopPending ;
223+ }
224+
225225 public String getTemplateVersion () {
226226 return this .templateVersion ;
227227 }
228-
228+
229229 public void setTemplateVersion (String templateVersion ) {
230230 this .templateVersion = templateVersion ;
231231 }
232-
232+
233233 public String getScriptsVersion () {
234234 return this .scriptsVersion ;
235235 }
236-
236+
237237 public void setScriptsVersion (String scriptsVersion ) {
238238 this .scriptsVersion = scriptsVersion ;
239239 }
@@ -242,9 +242,5 @@ public void setScriptsVersion(String scriptsVersion) {
242242 public Long getVpcId () {
243243 return vpcId ;
244244 }
245-
246- @ Override
247- public boolean canPlugNics () {
248- return true ;
249- }
245+
250246}
0 commit comments