Change-Id: I7a246bdd2222dc6d7b5ca3aa16e4bd1284c96530
Signed-off-by: Alessandro Boch <aboch@cisco.com>
po = e.getValue();
if (po != null) {
// Populate the Policy field now
po = e.getValue();
if (po != null) {
// Populate the Policy field now
- Status poStatus = this.frm.installFlowEntry(po);
+ Status poStatus = this.frm.modifyOrAddFlowEntry(po);
if (!poStatus.isSuccess()) {
log.error("Failed to install policy: "
+ po.getGroupName() + " ("
if (!poStatus.isSuccess()) {
log.error("Failed to install policy: "
+ po.getGroupName() + " ("
@Override
public void notifyNode(Node node, UpdateType type,
Map<String, Property> propMap) {
@Override
public void notifyNode(Node node, UpdateType type,
Map<String, Property> propMap) {
switch (type) {
case REMOVED:
switch (type) {
case REMOVED:
@Override
public void notifyNodeConnector(NodeConnector nodeConnector,
UpdateType type, Map<String, Property> propMap) {
@Override
public void notifyNodeConnector(NodeConnector nodeConnector,
UpdateType type, Map<String, Property> propMap) {
- if (nodeConnector == null)
+ if (nodeConnector == null) {
boolean up = false;
switch (type) {
boolean up = false;
switch (type) {