Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagejava
titleOpenFlowSwitch
collapsetrue
public interface OpenFlowSwitch {


	....
 
	/**
	 * Send FlowRule to the driver
	 *
	 * @param flowRule the FlowRule to be sent
	 */
	public void sendFlowRule(FlowRule flowRule);


	/**
	 * Send a FlowRule list to the driver
	 *
	 * @param flowRules a list of FlowRule to be sent
	 */
	public void sendFlowRules(List<FlowRule> flowRules);

	....
}

Code Block
languagejava
titleFlowRule
collapsetrue
public interface FlowRule extends BatchOperationTarget {
	
	/**
 * The FlowRule type is used to determine in which table the flow rule
 * needs to be put for multi-table support switch.
 * For single table switch, Default is used.
 */
public static enum FlowRuleType {
    /* Default type - used in flow rule for single table switch */
    Default,
    /* Used in flow entry for IP table */
    IP,
    /* Used in flow entry for MPLS table */
    MPLS,
    /* Used in flow entry for ACL table */
    ACL
}
 
}