Пример #1
0
 private void prepareLifeCycleInfo(FlowChain chain) {
   ApplianceVmPostLifeCycleInfo info = new ApplianceVmPostLifeCycleInfo();
   ApplianceVmInventory ainv = ApplianceVmInventory.valueOf(getSelf());
   L3NetworkVO defaultRouteL3VO =
       dbf.findByUuid(ainv.getDefaultRouteL3NetworkUuid(), L3NetworkVO.class);
   info.setDefaultRouteL3Network(L3NetworkInventory.valueOf(defaultRouteL3VO));
   info.setManagementNic(ainv.getManagementNic());
   chain
       .getData()
       .put(ApplianceVmConstant.Params.applianceVmInfoForPostLifeCycle.toString(), info);
 }
Пример #2
0
 protected ApplianceVmInventory getInventory() {
   return ApplianceVmInventory.valueOf(getSelf());
 }