test_class.declarator: HOST_ID = 10L
test_class.modifier: private static final
test_class.original_string: private static final long HOST_ID = 10L;
test_class.type: long
test_class.var_name: HOST_ID
test_class.declarator: agentManager
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected AgentManager agentManager;
test_class.type: AgentManager
test_class.var_name: agentManager
test_class.declarator: router
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected DomainRouterVO router;
test_class.type: DomainRouterVO
test_class.var_name: router
test_class.declarator: nwHelper = new NetworkHelperImpl()
test_class.modifier: @InjectMocks
      protected
test_class.original_string: @InjectMocks
      protected NetworkHelperImpl nwHelper = new NetworkHelperImpl();
test_class.type: NetworkHelperImpl
test_class.var_name: nwHelper
test_class.file: cosmic-core/server/src/test/java/com/cloud/network/router/NetworkHelperImplTest.java
test_class.identifier: NetworkHelperImplTest
test_case.body: @Test
      public void testSendCommandsToRouter()
              throws AgentUnavailableException, OperationTimedoutException, ResourceUnavailableException {
          // Prepare
          final NetworkHelperImpl nwHelperUT = spy(this.nwHelper);
          final VirtualRouter vr = mock(VirtualRouter.class);
          when(vr.getHostId()).thenReturn(HOST_ID);
          doReturn(true).when(nwHelperUT).checkRouterVersion(vr);
  
          final Commands commands = mock(Commands.class);
          when(commands.size()).thenReturn(3);
          final Answer answer1 = mock(Answer.class);
          final Answer answer2 = mock(Answer.class);
          final Answer answer3 = mock(Answer.class);
          // In the second iteration it should match and return, without invoking the third
          final Answer[] answers = {answer1, answer2, answer3};
          when(answer1.getResult()).thenReturn(true);
          when(answer2.getResult()).thenReturn(false);
          when(answer3.getResult()).thenReturn(false);
          when(this.agentManager.send(HOST_ID, commands)).thenReturn(answers);
  
          // Execute
          final boolean result = nwHelperUT.sendCommandsToRouter(vr, commands);
  
          // Assert
          verify(this.agentManager, times(1)).send(HOST_ID, commands);
          verify(answer1, times(1)).getResult();
          verify(answer2, times(1)).getResult();
          verify(answer3, times(0)).getResult();
          assertFalse(result);
      }
test_case.class_method_signature: NetworkHelperImplTest.testSendCommandsToRouter()
test_case.full_signature: @Test public void testSendCommandsToRouter()
test_case.identifier: testSendCommandsToRouter
test_case.invocations: spy mock thenReturn when getHostId checkRouterVersion when doReturn mock thenReturn when size mock mock mock thenReturn when getResult thenReturn when getResult thenReturn when getResult thenReturn when send sendCommandsToRouter send verify times getResult verify times getResult verify times getResult verify times assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSendCommandsToRouter()
focal_class.declarator: logger = LoggerFactory.getLogger(NetworkHelperImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(NetworkHelperImpl.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: s_systemAccount
focal_class.modifier: protected static
focal_class.original_string: protected static Account s_systemAccount;
focal_class.type: Account
focal_class.var_name: s_systemAccount
focal_class.declarator: s_vmInstanceName
focal_class.modifier: protected static
focal_class.original_string: protected static String s_vmInstanceName;
focal_class.type: String
focal_class.var_name: s_vmInstanceName
focal_class.declarator: hypervisorsMap = new HashMap<>()
focal_class.modifier: protected final
focal_class.original_string: protected final Map<HypervisorType, ConfigKey<String>> hypervisorsMap = new HashMap<>();
focal_class.type: Map<HypervisorType, ConfigKey<String>>
focal_class.var_name: hypervisorsMap
focal_class.declarator: _nicDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NicDao _nicDao;
focal_class.type: NicDao
focal_class.var_name: _nicDao
focal_class.declarator: _networkDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkDao _networkDao;
focal_class.type: NetworkDao
focal_class.var_name: _networkDao
focal_class.declarator: _networkOfferingDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkOfferingDao _networkOfferingDao;
focal_class.type: NetworkOfferingDao
focal_class.var_name: _networkOfferingDao
focal_class.declarator: _routerDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected DomainRouterDao _routerDao;
focal_class.type: DomainRouterDao
focal_class.var_name: _routerDao
focal_class.declarator: _networkModel
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkModel _networkModel;
focal_class.type: NetworkModel
focal_class.var_name: _networkModel
focal_class.declarator: _ipAddressDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected IPAddressDao _ipAddressDao;
focal_class.type: IPAddressDao
focal_class.var_name: _ipAddressDao
focal_class.declarator: _networkMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkOrchestrationService _networkMgr;
focal_class.type: NetworkOrchestrationService
focal_class.var_name: _networkMgr
focal_class.declarator: _serviceOfferingDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected ServiceOfferingDao _serviceOfferingDao;
focal_class.type: ServiceOfferingDao
focal_class.var_name: _serviceOfferingDao
focal_class.declarator: _itMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected VirtualMachineManager _itMgr;
focal_class.type: VirtualMachineManager
focal_class.var_name: _itMgr
focal_class.declarator: _ipAddrMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected IpAddressManager _ipAddrMgr;
focal_class.type: IpAddressManager
focal_class.var_name: _ipAddrMgr
focal_class.declarator: _agentMgr
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private AgentManager _agentMgr;
focal_class.type: AgentManager
focal_class.var_name: _agentMgr
focal_class.declarator: _alertMgr
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private AlertManager _alertMgr;
focal_class.type: AlertManager
focal_class.var_name: _alertMgr
focal_class.declarator: _accountMgr
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private AccountManager _accountMgr;
focal_class.type: AccountManager
focal_class.var_name: _accountMgr
focal_class.declarator: _s2sVpnMgr
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private Site2SiteVpnManager _s2sVpnMgr;
focal_class.type: Site2SiteVpnManager
focal_class.var_name: _s2sVpnMgr
focal_class.declarator: _hostDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private HostDao _hostDao;
focal_class.type: HostDao
focal_class.var_name: _hostDao
focal_class.declarator: _volumeDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private VolumeDao _volumeDao;
focal_class.type: VolumeDao
focal_class.var_name: _volumeDao
focal_class.declarator: _templateDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private VMTemplateDao _templateDao;
focal_class.type: VMTemplateDao
focal_class.var_name: _templateDao
focal_class.declarator: _resourceMgr
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private ResourceManager _resourceMgr;
focal_class.type: ResourceManager
focal_class.var_name: _resourceMgr
focal_class.declarator: _ipv6Dao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private UserIpv6AddressDao _ipv6Dao;
focal_class.type: UserIpv6AddressDao
focal_class.var_name: _ipv6Dao
focal_class.declarator: _userDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private UserDao _userDao;
focal_class.type: UserDao
focal_class.var_name: _userDao
focal_class.declarator: _affinityGroupDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private AffinityGroupDao _affinityGroupDao;
focal_class.type: AffinityGroupDao
focal_class.var_name: _affinityGroupDao
focal_class.declarator: _domainDao
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private DomainDao _domainDao;
focal_class.type: DomainDao
focal_class.var_name: _domainDao
focal_class.declarator: _dedicatedDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected DedicatedResourceDao _dedicatedDao;
focal_class.type: DedicatedResourceDao
focal_class.var_name: _dedicatedDao
focal_class.file: cosmic-core/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java
focal_class.identifier: NetworkHelperImpl
focal_class.interfaces: implements NetworkHelper
focal_class.class_method_signature: NetworkHelperImpl.setSystemAccount(final Account systemAccount)
focal_class.full_signature: public static void setSystemAccount(final Account systemAccount)
focal_class.identifier: setSystemAccount
focal_class.modifiers: public static
focal_class.parameters: (final Account systemAccount)
focal_class.return: void
focal_class.signature: void setSystemAccount(final Account systemAccount)
focal_class.class_method_signature: NetworkHelperImpl.setVMInstanceName(final String vmInstanceName)
focal_class.full_signature: public static void setVMInstanceName(final String vmInstanceName)
focal_class.identifier: setVMInstanceName
focal_class.modifiers: public static
focal_class.parameters: (final String vmInstanceName)
focal_class.return: void
focal_class.signature: void setVMInstanceName(final String vmInstanceName)
focal_class.class_method_signature: NetworkHelperImpl.setupHypervisorsMap()
focal_class.full_signature: @PostConstruct protected void setupHypervisorsMap()
focal_class.identifier: setupHypervisorsMap
focal_class.modifiers: @PostConstruct protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setupHypervisorsMap()
focal_class.class_method_signature: NetworkHelperImpl.sendCommandsToRouter(final VirtualRouter router, final Commands cmds)
focal_class.full_signature: @Override public boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds)
focal_class.identifier: sendCommandsToRouter
focal_class.modifiers: @Override public
focal_class.parameters: (final VirtualRouter router, final Commands cmds)
focal_class.return: boolean
focal_class.signature: boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds)
focal_class.class_method_signature: NetworkHelperImpl.handleSingleWorkingRedundantRouter(final List<? extends VirtualRouter> connectedRouters, final List<? extends VirtualRouter> disconnectedRouters,
                                                     final String reason)
focal_class.full_signature: @Override public void handleSingleWorkingRedundantRouter(final List<? extends VirtualRouter> connectedRouters, final List<? extends VirtualRouter> disconnectedRouters,
                                                     final String reason)
focal_class.identifier: handleSingleWorkingRedundantRouter
focal_class.modifiers: @Override public
focal_class.parameters: (final List<? extends VirtualRouter> connectedRouters, final List<? extends VirtualRouter> disconnectedRouters,
                                                     final String reason)
focal_class.return: void
focal_class.signature: void handleSingleWorkingRedundantRouter(final List<? extends VirtualRouter> connectedRouters, final List<? extends VirtualRouter> disconnectedRouters,
                                                     final String reason)
focal_class.class_method_signature: NetworkHelperImpl.getNicTO(final VirtualRouter router, final Long networkId, final String broadcastUri)
focal_class.full_signature: @Override public NicTO getNicTO(final VirtualRouter router, final Long networkId, final String broadcastUri)
focal_class.identifier: getNicTO
focal_class.modifiers: @Override public
focal_class.parameters: (final VirtualRouter router, final Long networkId, final String broadcastUri)
focal_class.return: NicTO
focal_class.signature: NicTO getNicTO(final VirtualRouter router, final Long networkId, final String broadcastUri)
focal_class.class_method_signature: NetworkHelperImpl.destroyRouter(final long routerId, final Account caller, final Long callerUserId)
focal_class.full_signature: @Override public VirtualRouter destroyRouter(final long routerId, final Account caller, final Long callerUserId)
focal_class.identifier: destroyRouter
focal_class.modifiers: @Override public
focal_class.parameters: (final long routerId, final Account caller, final Long callerUserId)
focal_class.return: VirtualRouter
focal_class.signature: VirtualRouter destroyRouter(final long routerId, final Account caller, final Long callerUserId)
focal_class.class_method_signature: NetworkHelperImpl.checkRouterVersion(final VirtualRouter router)
focal_class.full_signature: @Override public boolean checkRouterVersion(final VirtualRouter router)
focal_class.identifier: checkRouterVersion
focal_class.modifiers: @Override public
focal_class.parameters: (final VirtualRouter router)
focal_class.return: boolean
focal_class.signature: boolean checkRouterVersion(final VirtualRouter router)
focal_class.class_method_signature: NetworkHelperImpl.startRouters(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: @Override public List<DomainRouterVO> startRouters(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: startRouters
focal_class.modifiers: @Override public
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: List<DomainRouterVO>
focal_class.signature: List<DomainRouterVO> startRouters(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.class_method_signature: NetworkHelperImpl.start(DomainRouterVO router, final Map<Param, Object> params, final DeploymentPlan planToDeploy)
focal_class.full_signature: protected DomainRouterVO start(DomainRouterVO router, final Map<Param, Object> params, final DeploymentPlan planToDeploy)
focal_class.identifier: start
focal_class.modifiers: protected
focal_class.parameters: (DomainRouterVO router, final Map<Param, Object> params, final DeploymentPlan planToDeploy)
focal_class.return: DomainRouterVO
focal_class.signature: DomainRouterVO start(DomainRouterVO router, final Map<Param, Object> params, final DeploymentPlan planToDeploy)
focal_class.class_method_signature: NetworkHelperImpl.getCurrentLocalDateTimeStamp()
focal_class.full_signature: private String getCurrentLocalDateTimeStamp()
focal_class.identifier: getCurrentLocalDateTimeStamp
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCurrentLocalDateTimeStamp()
focal_class.class_method_signature: NetworkHelperImpl.waitRouter(final DomainRouterVO router)
focal_class.full_signature: protected DomainRouterVO waitRouter(final DomainRouterVO router)
focal_class.identifier: waitRouter
focal_class.modifiers: protected
focal_class.parameters: (final DomainRouterVO router)
focal_class.return: DomainRouterVO
focal_class.signature: DomainRouterVO waitRouter(final DomainRouterVO router)
focal_class.class_method_signature: NetworkHelperImpl.startVirtualRouter(final DomainRouterVO router, final User user, final Account caller, final Map<Param, Object> params)
focal_class.full_signature: @Override public DomainRouterVO startVirtualRouter(final DomainRouterVO router, final User user, final Account caller, final Map<Param, Object> params)
focal_class.identifier: startVirtualRouter
focal_class.modifiers: @Override public
focal_class.parameters: (final DomainRouterVO router, final User user, final Account caller, final Map<Param, Object> params)
focal_class.return: DomainRouterVO
focal_class.signature: DomainRouterVO startVirtualRouter(final DomainRouterVO router, final User user, final Account caller, final Map<Param, Object> params)
focal_class.class_method_signature: NetworkHelperImpl.findDedicatedAffinityGroup(final Long domainId, final Long accountId)
focal_class.full_signature: private AffinityGroup findDedicatedAffinityGroup(final Long domainId, final Long accountId)
focal_class.identifier: findDedicatedAffinityGroup
focal_class.modifiers: private
focal_class.parameters: (final Long domainId, final Long accountId)
focal_class.return: AffinityGroup
focal_class.signature: AffinityGroup findDedicatedAffinityGroup(final Long domainId, final Long accountId)
focal_class.class_method_signature: NetworkHelperImpl.getExcludeLists(final DomainRouterVO routerToBeAvoid, final List<Long> dedicatedAvoidSet)
focal_class.full_signature: private ExcludeList[] getExcludeLists(final DomainRouterVO routerToBeAvoid, final List<Long> dedicatedAvoidSet)
focal_class.identifier: getExcludeLists
focal_class.modifiers: private
focal_class.parameters: (final DomainRouterVO routerToBeAvoid, final List<Long> dedicatedAvoidSet)
focal_class.return: ExcludeList[]
focal_class.signature: ExcludeList[] getExcludeLists(final DomainRouterVO routerToBeAvoid, final List<Long> dedicatedAvoidSet)
focal_class.class_method_signature: NetworkHelperImpl.deployRouter(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean startRouter)
focal_class.full_signature: @Override public DomainRouterVO deployRouter(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean startRouter)
focal_class.identifier: deployRouter
focal_class.modifiers: @Override public
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition, final boolean startRouter)
focal_class.return: DomainRouterVO
focal_class.signature: DomainRouterVO deployRouter(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean startRouter)
focal_class.class_method_signature: NetworkHelperImpl.getHypervisors(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: protected List<HypervisorType> getHypervisors(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: getHypervisors
focal_class.modifiers: protected
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: List<HypervisorType>
focal_class.signature: List<HypervisorType> getHypervisors(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.class_method_signature: NetworkHelperImpl.retrieveTemplateName(final HypervisorType hType, final long datacenterId)
focal_class.full_signature: protected String retrieveTemplateName(final HypervisorType hType, final long datacenterId)
focal_class.identifier: retrieveTemplateName
focal_class.modifiers: protected
focal_class.parameters: (final HypervisorType hType, final long datacenterId)
focal_class.return: String
focal_class.signature: String retrieveTemplateName(final HypervisorType hType, final long datacenterId)
focal_class.class_method_signature: NetworkHelperImpl.filterSupportedHypervisors(final List<HypervisorType> hypervisors)
focal_class.full_signature: protected void filterSupportedHypervisors(final List<HypervisorType> hypervisors)
focal_class.identifier: filterSupportedHypervisors
focal_class.modifiers: protected
focal_class.parameters: (final List<HypervisorType> hypervisors)
focal_class.return: void
focal_class.signature: void filterSupportedHypervisors(final List<HypervisorType> hypervisors)
focal_class.class_method_signature: NetworkHelperImpl.getNoHypervisorsErrMsgDetails()
focal_class.full_signature: protected String getNoHypervisorsErrMsgDetails()
focal_class.identifier: getNoHypervisorsErrMsgDetails
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNoHypervisorsErrMsgDetails()
focal_class.class_method_signature: NetworkHelperImpl.configureControlNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: protected LinkedHashMap<Network, List<? extends NicProfile>> configureControlNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: configureControlNic
focal_class.modifiers: protected
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: LinkedHashMap<Network, List<? extends NicProfile>>
focal_class.signature: LinkedHashMap<Network, List<? extends NicProfile>> configureControlNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.class_method_signature: NetworkHelperImpl.configureSyncNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: protected LinkedHashMap<Network, List<? extends NicProfile>> configureSyncNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: configureSyncNic
focal_class.modifiers: protected
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: LinkedHashMap<Network, List<? extends NicProfile>>
focal_class.signature: LinkedHashMap<Network, List<? extends NicProfile>> configureSyncNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.class_method_signature: NetworkHelperImpl.configurePublicNic(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean hasGuestNic)
focal_class.full_signature: protected LinkedHashMap<Network, List<? extends NicProfile>> configurePublicNic(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean hasGuestNic)
focal_class.identifier: configurePublicNic
focal_class.modifiers: protected
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition, final boolean hasGuestNic)
focal_class.return: LinkedHashMap<Network, List<? extends NicProfile>>
focal_class.signature: LinkedHashMap<Network, List<? extends NicProfile>> configurePublicNic(final RouterDeploymentDefinition routerDeploymentDefinition, final boolean hasGuestNic)
focal_class.class_method_signature: NetworkHelperImpl.reallocateRouterNetworks(final RouterDeploymentDefinition routerDeploymentDefinition, final VirtualRouter router, final VMTemplateVO template, final
      HypervisorType hType)
focal_class.full_signature: @Override public void reallocateRouterNetworks(final RouterDeploymentDefinition routerDeploymentDefinition, final VirtualRouter router, final VMTemplateVO template, final
      HypervisorType hType)
focal_class.identifier: reallocateRouterNetworks
focal_class.modifiers: @Override public
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition, final VirtualRouter router, final VMTemplateVO template, final
      HypervisorType hType)
focal_class.return: void
focal_class.signature: void reallocateRouterNetworks(final RouterDeploymentDefinition routerDeploymentDefinition, final VirtualRouter router, final VMTemplateVO template, final
      HypervisorType hType)
focal_class.class_method_signature: NetworkHelperImpl.configureDefaultNics(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: @Override public LinkedHashMap<Network, List<? extends NicProfile>> configureDefaultNics(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: configureDefaultNics
focal_class.modifiers: @Override public
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: LinkedHashMap<Network, List<? extends NicProfile>>
focal_class.signature: LinkedHashMap<Network, List<? extends NicProfile>> configureDefaultNics(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.class_method_signature: NetworkHelperImpl.configureGuestNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.full_signature: @Override public LinkedHashMap<Network, List<? extends NicProfile>> configureGuestNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.identifier: configureGuestNic
focal_class.modifiers: @Override public
focal_class.parameters: (final RouterDeploymentDefinition routerDeploymentDefinition)
focal_class.return: LinkedHashMap<Network, List<? extends NicProfile>>
focal_class.signature: LinkedHashMap<Network, List<? extends NicProfile>> configureGuestNic(final RouterDeploymentDefinition routerDeploymentDefinition)
focal_method.body: @Override
      public boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds) throws AgentUnavailableException, ResourceUnavailableException {
          if (!checkRouterVersion(router)) {
              logger.debug("Router requires upgrade. Unable to send command to router:" + router.getId() + ", router template version : " + router.getTemplateVersion()
                      + ", minimal required version : " + NetworkOrchestrationService.MinVRVersion.valueIn(router.getDataCenterId()));
              throw new ResourceUnavailableException("Unable to send command. Router requires upgrade", VirtualRouter.class, router.getId());
          }
          Answer[] answers = null;
          try {
              answers = _agentMgr.send(router.getHostId(), cmds);
          } catch (final OperationTimedoutException e) {
              logger.warn("Timed Out", e);
              throw new AgentUnavailableException("Unable to send commands to virtual router ", router.getHostId(), e);
          }
  
          if (answers == null || answers.length != cmds.size()) {
              return false;
          }
  
          // FIXME: Have to return state for individual command in the future
          boolean result = true;
          for (final Answer answer : answers) {
              if (!answer.getResult()) {
                  result = false;
                  break;
              }
          }
          return result;
      }
focal_method.class_method_signature: NetworkHelperImpl.sendCommandsToRouter(final VirtualRouter router, final Commands cmds)
focal_method.full_signature: @Override public boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds)
focal_method.identifier: sendCommandsToRouter
focal_method.invocations: checkRouterVersion debug getId getTemplateVersion valueIn getDataCenterId getId send getHostId warn getHostId size getResult
focal_method.modifiers: @Override public
focal_method.parameters: (final VirtualRouter router, final Commands cmds)
focal_method.return: boolean
focal_method.signature: boolean sendCommandsToRouter(final VirtualRouter router, final Commands cmds)