2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.groupbasedpolicy.renderer.ofoverlay.flow;
11 import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.OfContext;
12 import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.PolicyManager.FlowMap;
13 import org.opendaylight.groupbasedpolicy.resolver.PolicyInfo;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
19 * Manage the state of a openflow table by reacting to any events and updating
20 * the table state. This is an abstract class that must be extended for
21 * each specific table being managed.
24 public abstract class OfTable {
25 protected static final Logger LOG =
26 LoggerFactory.getLogger(OfTable.class);
28 protected final OfContext ctx;
30 public OfTable(OfContext ctx) {
41 * Update the relevant flow table for the node
42 * @param nodeId the node to update
47 public abstract void update(NodeId nodeId,
48 PolicyInfo policyInfo,
49 FlowMap flowMap) throws Exception;