Search in sources :

Example 1 with UserdataToRouterRules

use of com.cloud.network.rules.UserdataToRouterRules in project cosmic by MissionCriticalCloud.

the class BasicNetworkTopology method saveUserDataToRouter.

@Override
public boolean saveUserDataToRouter(final Network network, final NicProfile nic, final VirtualMachineProfile profile, final VirtualRouter router) throws ResourceUnavailableException {
    s_logger.debug("SAVE USERDATA TO ROUTE RULES");
    final String typeString = "save userdata entry";
    final boolean isPodLevelException = false;
    final boolean failWhenDisconnect = false;
    final Long podId = null;
    final UserdataToRouterRules userdataToRouterRules = new UserdataToRouterRules(network, nic, profile);
    return applyRules(network, router, typeString, isPodLevelException, podId, failWhenDisconnect, new RuleApplierWrapper<>(userdataToRouterRules));
}
Also used : UserdataToRouterRules(com.cloud.network.rules.UserdataToRouterRules)

Example 2 with UserdataToRouterRules

use of com.cloud.network.rules.UserdataToRouterRules in project cloudstack by apache.

the class BasicNetworkTopology method saveUserDataToRouter.

@Override
public boolean saveUserDataToRouter(final Network network, final NicProfile nic, final VirtualMachineProfile profile, final VirtualRouter router) throws ResourceUnavailableException {
    s_logger.debug("SAVE USERDATA TO ROUTE RULES");
    final String typeString = "save userdata entry";
    final boolean isPodLevelException = false;
    final boolean failWhenDisconnect = false;
    final Long podId = null;
    final UserdataToRouterRules userdataToRouterRules = new UserdataToRouterRules(network, nic, profile);
    return applyRules(network, router, typeString, isPodLevelException, podId, failWhenDisconnect, new RuleApplierWrapper<RuleApplier>(userdataToRouterRules));
}
Also used : RuleApplier(com.cloud.network.rules.RuleApplier) UserdataToRouterRules(com.cloud.network.rules.UserdataToRouterRules)

Aggregations

UserdataToRouterRules (com.cloud.network.rules.UserdataToRouterRules)2 RuleApplier (com.cloud.network.rules.RuleApplier)1