QoS log tags have been modified for better debugging.
Change-Id: I6ec119429363735ccbd8cadc4e4628b2fb983f49
Signed-off-by: Meenakshi <meenakshi.c@ericsson.com>
super(QosalertConfig.class, QosAlertConfigListener.class);
this.dataBroker = dataBroker;
this.qosAlertManager = qosAlertManager;
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@PostConstruct
public void init() {
registerListener(LogicalDatastoreType.CONFIGURATION, dataBroker);
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
public void setQosAlertManager(QosAlertManager qosAlertManager) {
this.qosAlertManager = qosAlertManager;
- LOG.debug("Qos manager:{} set", qosAlertManager);
+ LOG.trace("Qos manager:{} set", qosAlertManager);
}
@Override
try {
updateQoSAlertLog4jProperties(getPropertyMap(QosConstants.QOS_ALERT_PROPERTIES_PID));
} catch (IOException e) {
- LOG.error("Error updating log4j properties", e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Error initialising log4j properties ", e);
+ } else {
+ LOG.warn("Qos Alert properties could not be initialised");
+ }
}
}
try {
updateQoSAlertLog4jProperties(qosAlertProperties);
} catch (IOException e) {
- LOG.error("Error updating log4j properties", e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Error updating log4j properties ", e);
+ } else {
+ LOG.warn("Qos Alert properties update failed");
+ }
}
}
log4jConfig.update(updateLog4jProperties);
log4jConfig.update();
} catch (IOException ioe) {
- LOG.error("Exception in configuration {}", ioe);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Exception in configuration ", ioe);
+ } else {
+ LOG.warn("Could not update configuration in Config log");
+ }
}
}
}
final OpendaylightDirectStatisticsService odlDirectStatisticsService, final QosalertConfig defaultConfig,
final QosNeutronUtils qosNeutronUtils, final QosEosHandler qosEosHandler,
final IInterfaceManager interfaceManager) {
- LOG.debug("{} created", getClass().getSimpleName());
this.txRunner = new ManagedNewTransactionRunnerImpl(dataBroker);
this.odlDirectStatisticsService = odlDirectStatisticsService;
this.interfaceManager = interfaceManager;
this.defaultConfig = defaultConfig;
this.qosNeutronUtils = qosNeutronUtils;
this.qosEosHandler = qosEosHandler;
- LOG.debug("QosAlert default config poll alertEnabled:{} threshold:{} pollInterval:{}",
+ LOG.trace("QosAlert default config poll alertEnabled:{} threshold:{} pollInterval:{}",
defaultConfig.isQosAlertEnabled(), defaultConfig.getQosDropPacketThreshold(),
defaultConfig.getQosAlertPollInterval());
getDefaultConfig();
qosAlertDpnPortNumberMap.clear();
statsPollThreadStart = true;
startStatsPollThread();
- LOG.debug("{} init done", getClass().getSimpleName());
+ LOG.trace("{} init done", getClass().getSimpleName());
}
@PreDestroy
if (thread != null) {
thread.interrupt();
}
- LOG.debug("{} close done", getClass().getSimpleName());
+ LOG.trace("{} close done", getClass().getSimpleName());
}
private void setQosAlertOwner(boolean isOwner) {
public void run() {
LOG.debug("Qos alert poll thread started");
while (statsPollThreadStart && alertEnabled) {
- LOG.debug("Thread loop polling :{} threshold:{} pollInterval:{}",
+ LOG.trace("Thread loop polling :{} threshold:{} pollInterval:{}",
alertEnabled, alertThresholdSupplier.get(), pollInterval);
try {
InterfaceInfo interfaceInfo =
interfaceManager.getInterfaceInfoFromOperationalDataStore(ifaceId);
if (interfaceInfo == null) {
- LOG.debug("Interface not found {}. Add in cache now and process later ", ifaceId);
+ LOG.debug("Interface not found {}. Added in cache now to process later ", ifaceId);
unprocessedInterfaceIds.add(ifaceId);
} else {
addToQosAlertCache(interfaceInfo);
private void addToQosAlertCache(InterfaceInfo interfaceInfo) {
BigInteger dpnId = interfaceInfo.getDpId();
if (dpnId.equals(IfmConstants.INVALID_DPID)) {
- LOG.error("Interface {} has INVALID_DPID", interfaceInfo.getInterfaceName());
+ LOG.warn("Interface {} could not be added to Qos Alert Cache because Dpn Id is not found",
+ interfaceInfo.getInterfaceName());
return;
}
Port port = qosNeutronUtils.getNeutronPort(interfaceInfo.getInterfaceName());
if (port == null) {
- LOG.error("Port {} not found", interfaceInfo.getInterfaceName());
+ LOG.warn("Port {} not added to Qos Alert Cache because it is not found", interfaceInfo.getInterfaceName());
return;
}
BigInteger dpnId = qosNeutronUtils.getDpnIdFromLowerLayerIf(lowerLayerIf);
String portNumber = qosNeutronUtils.getPortNumberFromLowerLayerIf(lowerLayerIf);
if (dpnId == null || portNumber == null) {
- LOG.error("interface {} not in openflow:dpnid:portnum format", lowerLayerIf);
+ LOG.warn("Interface {} not in openflow:dpnid:portnum format, could not remove from cache", lowerLayerIf);
return;
}
removeFromQosAlertCache(dpnId, portNumber);
if (qosAlertDpnPortNumberMap.containsKey(dpnId)
&& qosAlertDpnPortNumberMap.get(dpnId).containsKey(portNumber)) {
qosAlertDpnPortNumberMap.get(dpnId).remove(portNumber);
- LOG.debug("Removed interace {}:{} from cache", dpnId, portNumber);
+ LOG.trace("Removed interace {}:{} from cache", dpnId, portNumber);
if (qosAlertDpnPortNumberMap.get(dpnId).isEmpty()) {
- LOG.debug("DPN {} empty. Removing dpn from cache as well", dpnId);
+ LOG.trace("DPN {} empty. Removing dpn from cache", dpnId);
qosAlertDpnPortNumberMap.remove(dpnId);
}
}
try {
rpcResult = rpcResultFuture.get();
} catch (InterruptedException | ExecutionException e) {
- LOG.error("Exception {} occurred with node {} Direct-Statistics get", e, dpn);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Could not get Direct-Statistics for node {} Exception occurred ", dpn, e);
+ } else {
+ LOG.info("Could not get Direct-Statistics for node {}", dpn);
+ }
}
if (rpcResult != null && rpcResult.isSuccessful() && rpcResult.getResult() != null) {
}
}
} else {
- LOG.error("Direct-Statistics not available for node {}", dpn);
+ LOG.info("Direct-Statistics not available for node {}", dpn);
}
}
public void setQosAlertManager(QosAlertManager qosAlertManager) {
this.qosAlertManager = qosAlertManager;
- LOG.debug("Qos manager:{} set", qosAlertManager);
+ LOG.trace("Qos manager:{} set", qosAlertManager);
}
@Override
}
public void updatePortStatistics(NodeConnectorStatisticsAndPortNumberMap statsData) {
- LOG.trace("Port {} rx-packets {} tx-packets {} rx-dropped {} tx-dropped {}", port.getUuid(),
+ LOG.trace("Port {} rx-packets {} tx-packets {} rx-dropped {} tx-dropped {}", port.getUuid().getValue(),
statsData.getPackets().getReceived(), statsData.getPackets().getTransmitted(),
statsData.getReceiveDrops(), statsData.getTransmitDrops());
if (statsDataInit) {
BigInteger rxDroppedDiff = statsData.getReceiveDrops().subtract(rxDroppedPackets);
if ((rxDiff.signum() < 0) || (rxDroppedDiff.signum() < 0)) {
- LOG.debug("Port {} counters reset", port.getUuid());
+ LOG.debug("Port {} counters reset", port.getUuid().getValue());
initPortData(); // counters wrapped. wait for one more poll.
return;
}
BigInteger rxTotalDiff = rxDiff.add(rxDroppedDiff);
- LOG.trace("Port {} rxDiff:{} rxDropped diff:{} total diff:{}", port.getUuid(), rxDiff,
+ LOG.trace("Port {} rxDiff:{} rxDropped diff:{} total diff:{}", port.getUuid().getValue(), rxDiff,
rxDroppedDiff, rxTotalDiff);
QosPolicy qosPolicy = qosNeutronUtils.getQosPolicy(port);
public void setQosAlertManager(QosAlertManager qosAlertManager) {
this.qosAlertManager = qosAlertManager;
- LOG.debug("Qos manager:{} set", qosAlertManager);
+ LOG.trace("Qos manager:{} set", qosAlertManager);
}
@Override
QosConstants.QOS_ALERT_OWNER_ENTITY_TYPE, QosConstants.QOS_ALERT_OWNER_ENTITY_TYPE);
try {
candidateRegistration = entityOwnershipService.registerCandidate(instanceEntity);
+ LOG.trace("entity ownership registeration successful");
} catch (CandidateAlreadyRegisteredException e) {
- LOG.warn("qosalert instance entity {} was already "
- + "registered for ownership", instanceEntity);
+ LOG.trace("qosalert instance entity {} was already registered for ownership", instanceEntity);
}
- LOG.trace("entity ownership registeration successful");
}
@Override
this.neutronVpnManager = neutronVpnManager;
serviceRecoveryRegistry.addRecoverableListener(qosServiceRecoveryHandler.buildServiceRegistryKey(),
this);
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@PostConstruct
public void init() {
registerListener();
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
@Override
@SuppressWarnings("checkstyle:IllegalCatch")
protected void add(InstanceIdentifier<Interface> identifier, Interface intrf) {
- try {
- if (L2vlan.class.equals(intrf.getType())) {
- final String interfaceName = intrf.getName();
- getNeutronPort(interfaceName).ifPresent(port -> {
- Network network = qosNeutronUtils.getNeutronNetwork(port.getNetworkId());
- LOG.trace("Qos Service : Received interface {} PORT UP event ", interfaceName);
- if (port.augmentation(QosPortExtension.class) != null) {
- Uuid portQosUuid = port.augmentation(QosPortExtension.class).getQosPolicyId();
- if (portQosUuid != null) {
- qosNeutronUtils.addToQosPortsCache(portQosUuid, port);
- qosNeutronUtils.handleQosInterfaceAdd(port, portQosUuid);
- }
- } else {
- if (network.augmentation(QosNetworkExtension.class) != null) {
- Uuid networkQosUuid = network.augmentation(QosNetworkExtension.class).getQosPolicyId();
- if (networkQosUuid != null) {
- qosNeutronUtils.handleQosInterfaceAdd(port, networkQosUuid);
- }
+ if (L2vlan.class.equals(intrf.getType())) {
+ final String interfaceName = intrf.getName();
+ getNeutronPort(interfaceName).ifPresent(port -> {
+ Network network = qosNeutronUtils.getNeutronNetwork(port.getNetworkId());
+ LOG.debug("Qos Service : Received interface {} PORT UP event ", interfaceName);
+ if (port.augmentation(QosPortExtension.class) != null) {
+ Uuid portQosUuid = port.augmentation(QosPortExtension.class).getQosPolicyId();
+ if (portQosUuid != null) {
+ qosNeutronUtils.addToQosPortsCache(portQosUuid, port);
+ qosNeutronUtils.handleQosInterfaceAdd(port, portQosUuid);
+ }
+ } else {
+ if (network.augmentation(QosNetworkExtension.class) != null) {
+ Uuid networkQosUuid = network.augmentation(QosNetworkExtension.class).getQosPolicyId();
+ if (networkQosUuid != null) {
+ qosNeutronUtils.handleQosInterfaceAdd(port, networkQosUuid);
}
}
- qosAlertManager.processInterfaceUpEvent(interfaceName);
- });
- }
- } catch (Exception e) {
- LOG.error("Qos:Exception caught in Interface Operational State Up event {}", e);
+ }
+ qosAlertManager.processInterfaceUpEvent(interfaceName);
+ });
}
}
this.qosNeutronUtils = qosNeutronUtils;
serviceRecoveryRegistry.addRecoverableListener(qosServiceRecoveryHandler.buildServiceRegistryKey(),
this);
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@PostConstruct
public void init() {
registerListener();
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
this.jobCoordinator = jobCoordinator;
serviceRecoveryRegistry.addRecoverableListener(qosServiceRecoveryHandler.buildServiceRegistryKey(),
this);
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@PostConstruct
public void init() {
registerListener();
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
}
public void handleNeutronPortQosAdd(Port port, Uuid qosUuid) {
- LOG.trace("Handling Port add and QoS associated: port: {} qos: {}", port.getUuid(), qosUuid);
+ LOG.debug("Handling Port add and QoS associated: port: {} qos: {}", port.getUuid().getValue(),
+ qosUuid.getValue());
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
}
public void handleQosInterfaceAdd(Port port, Uuid qosUuid) {
- LOG.trace("Handling Port add and QoS associated: port: {} qos: {}", port.getUuid(), qosUuid);
+ LOG.debug("Handling Port add and QoS associated: port: {} qos: {}", port.getUuid().getValue(),
+ qosUuid.getValue());
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
}
public void handleNeutronPortQosUpdate(Port port, Uuid qosUuidNew, Uuid qosUuidOld) {
- LOG.trace("Handling Port QoS update: port: {} qosservice: {}", port.getUuid(), qosUuidNew);
+ LOG.debug("Handling Port QoS update: port: {} qosservice: {}", port.getUuid().getValue(),
+ qosUuidNew.getValue());
QosPolicy qosPolicyNew = qosPolicyMap.get(qosUuidNew);
QosPolicy qosPolicyOld = qosPolicyMap.get(qosUuidOld);
}
public void handleNeutronPortQosRemove(Port port, Uuid qosUuid) {
- LOG.trace("Handling Port QoS removal: port: {} qosservice: {}", port.getUuid(), qosUuid);
+ LOG.debug("Handling Port QoS removal: port: {} qosservice: {}", port.getUuid().getValue(), qosUuid.getValue());
// check for network qosservice to apply
Network network = neutronVpnManager.getNeutronNetwork(port.getNetworkId());
}
public void handleNeutronPortRemove(Port port, Uuid qosUuid) {
- LOG.trace("Handling Port removal and Qos associated: port: {} qos: {}", port.getUuid(), qosUuid);
+ LOG.debug("Handling Port removal and Qos associated: port: {} qos: {}", port.getUuid().getValue(),
+ qosUuid.getValue());
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
jobCoordinator.enqueueJob("QosPort-" + port.getUuid().getValue(), () -> {
}
public void handleNeutronPortRemove(Port port, Uuid qosUuid, Interface intrf) {
- LOG.trace("Handling Port removal and Qos associated: port: {} qos: {}", port.getUuid(), qosUuid);
+ LOG.debug("Handling Port removal and Qos associated: port: {} qos: {}", port.getUuid().getValue(),
+ qosUuid.getValue());
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
jobCoordinator.enqueueJob("QosPort-" + port.getUuid().getValue(), () -> {
public void handleNeutronNetworkQosUpdate(Network network, Uuid qosUuid) {
- LOG.trace("Handling Network QoS update: net: {} qosservice: {}", network.getUuid(), qosUuid);
+ LOG.debug("Handling Network QoS update: net: {} qosservice: {}", network.getUuid().getValue(), qosUuid);
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
if (qosPolicy == null || (qosPolicy.getBandwidthLimitRules() == null
|| qosPolicy.getBandwidthLimitRules().isEmpty())
}
public void handleNeutronNetworkQosRemove(Network network, Uuid qosUuid) {
- LOG.trace("Handling Network QoS removal: net: {} qosservice: {}", network.getUuid(), qosUuid);
+ LOG.debug("Handling Network QoS removal: net: {} qosservice: {}", network.getUuid().getValue(),
+ qosUuid.getValue());
QosPolicy qosPolicy = qosPolicyMap.get(qosUuid);
List<Uuid> subnetIds = getSubnetIdsFromNetworkId(network.getUuid());
}
public void handleNeutronNetworkQosBwRuleRemove(Network network, BandwidthLimitRules zeroBwLimitRule) {
- LOG.trace("Handling Qos Bandwidth Rule Remove, net: {}", network.getUuid());
+ LOG.debug("Handling Qos Bandwidth Rule Remove, net: {}", network.getUuid().getValue());
List<Uuid> subnetIds = getSubnetIdsFromNetworkId(network.getUuid());
}
public void handleNeutronNetworkQosDscpRuleRemove(Network network) {
- LOG.trace("Handling Qos Dscp Rule Remove, net: {}", network.getUuid());
+ LOG.debug("Handling Qos Dscp Rule Remove, net: {}", network.getUuid().getValue());
List<Uuid> subnetIds = getSubnetIdsFromNetworkId(network.getUuid());
@SuppressWarnings("checkstyle:IllegalCatch")
public void setPortBandwidthLimits(Port port, BandwidthLimitRules bwLimit, WriteTransaction writeConfigTxn) {
if (!qosEosHandler.isQosClusterOwner()) {
- LOG.trace("Not Qos Cluster Owner. Ignoring setting bandwidth limits");
+ LOG.debug("Not Qos Cluster Owner. Ignoring setting bandwidth limits");
return;
}
- LOG.trace("Setting bandwidth limits {} on Port {}", port, bwLimit);
-
BigInteger dpId = getDpnForInterface(port.getUuid().getValue());
if (dpId.equals(BigInteger.ZERO)) {
LOG.info("DPN ID for interface {} not found", port.getUuid().getValue());
return;
}
+ LOG.trace("Setting bandwidth limits {} on Port {}", port.getUuid().getValue(), bwLimit);
OvsdbBridgeRef bridgeRefEntry = getBridgeRefEntryFromOperDS(dpId);
Optional<Node> bridgeNode = MDSALUtil.read(LogicalDatastoreType.OPERATIONAL,
bridgeRefEntry.getValue().firstIdentifierOf(Node.class), dataBroker);
.child(TerminationPoint.class, new TerminationPointKey(tp.key())), tpBuilder.build());
}
} catch (Exception e) {
- LOG.error("Failure while setting BwLimitRule {} to port {}", bwLimit, port, e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Failure while setting BwLimitRule {} to port {} exception ", bwLimit,
+ port.getUuid().getValue(), e);
+ } else {
+ LOG.error("Failure while setting BwLimitRule {} to port {}", bwLimit, port.getUuid().getValue());
+ }
}
}
LOG.trace("Not Qos Cluster Owner. Ignoring setting DSCP marking");
return;
}
- LOG.trace("Setting DSCP value {} on Port {}", port, dscpMark);
BigInteger dpnId = getDpnForInterface(port.getUuid().getValue());
String ifName = port.getUuid().getValue();
Short dscpValue = dscpMark.getDscpMark();
if (dpnId.equals(BigInteger.ZERO)) {
- LOG.info("DPN ID for interface {} not found", port.getUuid().getValue());
+ LOG.info("DPN ID for interface {} not found. Cannot set dscp value {} on port {}",
+ port.getUuid().getValue(), dscpMark, port.getUuid().getValue());
return;
}
-
int ipVersions = getIpVersions(port);
-
//1. OF rules
if (hasIpv4Addr(ipVersions)) {
LOG.trace("setting ipv4 flow for port: {}, dscp: {}", ifName, dscpValue);
public void unsetPortDscpMark(Port port) {
if (!qosEosHandler.isQosClusterOwner()) {
- LOG.trace("Not Qos Cluster Owner. Ignoring unsetting DSCP marking");
+ LOG.debug("Not Qos Cluster Owner. Ignoring unsetting DSCP marking");
return;
}
- LOG.trace("Removing dscp marking rule from Port {}", port);
BigInteger dpnId = getDpnForInterface(port.getUuid().getValue());
String ifName = port.getUuid().getValue();
if (dpnId.equals(BigInteger.ZERO)) {
- LOG.info("DPN ID for port {} not found", port);
+ LOG.debug("DPN ID for port {} not found. Cannot unset dscp value", port.getUuid().getValue());
return;
}
+ LOG.trace("Removing dscp marking rule from Port {}", port.getUuid().getValue());
Interface intf = getInterfaceStateFromOperDS(ifName);
-
//unbind service from interface
unbindservice(ifName);
// 1. OF
if (!qosEosHandler.isQosClusterOwner()) {
return;
}
- LOG.trace("Removing dscp marking rule from Port {}", port);
-
BigInteger dpnId = getDpIdFromInterface(intrf);
String ifName = port.getUuid().getValue();
if (dpnId.equals(BigInteger.ZERO)) {
- LOG.error("Unable to retrieve DPN Id for interface {}", ifName);
+ LOG.error("Unable to retrieve DPN Id for interface {}. Cannot unset dscp value on port", ifName);
return;
}
+ LOG.trace("Removing dscp marking rule from Port {}", port.getUuid().getValue());
unbindservice(ifName);
int ipVersions = getIpVersions(port);
if (hasIpv4Addr(ipVersions)) {
LOG.error("Could not retrieve DPN Id for interface {}", ifName);
}
} catch (NullPointerException | InterruptedException | ExecutionException e) {
- LOG.error("Exception when getting dpn for interface {}", ifName, e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Exception when getting DPN for interface {} exception ", ifName, e);
+ } else {
+ LOG.error("Could not retrieve DPN for interface {}", ifName);
+ }
}
return nodeId;
}
public void addFlow(BigInteger dpnId, Short dscpValue, String ifName, int ethType, Interface ifState) {
if (ifState == null) {
- LOG.trace("Could not find the ifState for interface {}", ifName);
+ LOG.debug("Could not find the ifState for interface {}", ifName);
return;
}
Integer ifIndex = ifState.getIfIndex();
public void removeFlow(BigInteger dpnId, String ifName, int ethType, Interface ifState) {
if (ifState == null) {
- LOG.trace("Could not find the ifState for interface {}", ifName);
+ LOG.debug("Could not find the ifState for interface {}", ifName);
return;
}
Integer ifIndex = ifState.getIfIndex();
}
public boolean portHasQosPolicy(Port port) {
- LOG.trace("checking qos policy for port: {}", port.getUuid());
+ LOG.trace("checking qos policy for port: {}", port.getUuid().getValue());
boolean isQosPolicy = port.augmentation(QosPortExtension.class) != null
&& port.augmentation(QosPortExtension.class).getQosPolicyId() != null;
- LOG.trace("portHasQosPolicy for port: {} return value {}", port.getUuid(), isQosPolicy);
+ LOG.trace("portHasQosPolicy for port: {} return value {}", port.getUuid().getValue(), isQosPolicy);
return isQosPolicy;
}
this.mdsalUtils = mdsalUtils;
serviceRecoveryRegistry.addRecoverableListener(qosServiceRecoveryHandler.buildServiceRegistryKey(),
this);
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@Override
@PostConstruct
public void init() {
registerListener();
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
this.jobCoordinator = jobCoordinator;
serviceRecoveryRegistry.addRecoverableListener(qosServiceRecoveryHandler.buildServiceRegistryKey(),
this);
- LOG.debug("{} created", getClass().getSimpleName());
+ LOG.trace("{} created", getClass().getSimpleName());
}
@PostConstruct
public void init() {
registerListener();
supportedQoSRuleTypes();
- LOG.debug("{} init and registerListener done", getClass().getSimpleName());
+ LOG.trace("{} init and registerListener done", getClass().getSimpleName());
}
@Override
@Override
protected void add(InstanceIdentifier<QosPolicy> identifier, QosPolicy input) {
- LOG.trace("Adding QosPolicy : key: {}, value={}", identifier, input);
+ LOG.debug("Adding QosPolicy : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(),input);
qosNeutronUtils.addToQosPolicyCache(input);
}
protected void add(InstanceIdentifier<BandwidthLimitRules> identifier, BandwidthLimitRules input) {
- LOG.trace("Adding BandwidthlimitRules : key: {}, value={}", identifier, input);
+ LOG.debug("Adding BandwidthlimitRules : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), input);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
for (Network network : qosNeutronUtils.getQosNetworks(qosUuid)) {
}
private void add(InstanceIdentifier<DscpmarkingRules> identifier, DscpmarkingRules input) {
- LOG.trace("Adding DscpMarkingRules : key: {}, value={}", identifier, input);
+ LOG.debug("Adding DscpMarkingRules : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), input);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
@Override
protected void remove(InstanceIdentifier<QosPolicy> identifier, QosPolicy input) {
- LOG.trace("Removing QosPolicy : key: {}, value={}", identifier, input);
+ LOG.debug("Removing QosPolicy : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), input);
qosNeutronUtils.removeFromQosPolicyCache(input);
}
private void remove(InstanceIdentifier<BandwidthLimitRules> identifier, BandwidthLimitRules input) {
- LOG.trace("Removing BandwidthLimitRules : key: {}, value={}", identifier, input);
+ LOG.debug("Removing BandwidthLimitRules : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), input);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
BandwidthLimitRulesBuilder bwLimitBuilder = new BandwidthLimitRulesBuilder();
}
private void remove(InstanceIdentifier<DscpmarkingRules> identifier,DscpmarkingRules input) {
- LOG.trace("Removing DscpMarkingRules : key: {}, value={}", identifier, input);
+ LOG.debug("Removing DscpMarkingRules : key: {}, value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), input);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
@Override
protected void update(InstanceIdentifier<QosPolicy> identifier, QosPolicy original, QosPolicy update) {
- LOG.trace("Updating QosPolicy : key: {}, original value={}, update value={}", identifier, original, update);
+ LOG.debug("Updating QosPolicy : key: {}, original value={}, update value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), original, update);
qosNeutronUtils.addToQosPolicyCache(update);
}
private void update(InstanceIdentifier<BandwidthLimitRules> identifier, BandwidthLimitRules original,
BandwidthLimitRules update) {
- LOG.trace("Updating BandwidthLimitRules : key: {}, original value={}, update value={}", identifier, original,
+ LOG.debug("Updating BandwidthLimitRules : key: {}, original value={}, update value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), original,
update);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
update(qosUuid, update);
private void update(InstanceIdentifier<DscpmarkingRules> identifier, DscpmarkingRules original,
DscpmarkingRules update) {
- LOG.trace("Updating DscpMarkingRules : key: {}, original value={}, update value={}", identifier, original,
- update);
+ LOG.debug("Updating DscpMarkingRules : key: {}, original value={}, update value={}",
+ identifier.firstKeyOf(QosPolicy.class).getUuid().getValue(), original, update);
Uuid qosUuid = identifier.firstKeyOf(QosPolicy.class).getUuid();
update(qosUuid, update);
}