Java Code Examples for org.onosproject.net.flow.FlowRule#deviceId()
The following examples show how to use
org.onosproject.net.flow.FlowRule#deviceId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlowModBuilder.java From onos with Apache License 2.0 | 5 votes |
/** * Constructs a flow mod builder. * * @param flowRule the flow rule to transform into a flow mod * @param factory the OpenFlow factory to use to build the flow mod * @param driverService the device driver service * @param xid the transaction ID */ protected FlowModBuilder(FlowRule flowRule, OFFactory factory, Optional<Long> xid, Optional<DriverService> driverService) { this.factory = factory; this.flowRule = flowRule; this.selector = flowRule.selector(); this.xid = xid.orElse(0L); this.driverService = driverService; this.deviceId = flowRule.deviceId(); }
Example 2
Source File: IntentMonitorAndRerouteManager.java From onos with Apache License 2.0 | 5 votes |
/** * Returns the connect point related to the output port of the rule. * @param rule * @return */ private ConnectPoint buildConnectPoint(FlowRule rule) { PortNumber port = getOutput(rule); if (port == null) { return null; } return new ConnectPoint(rule.deviceId(), port); }
Example 3
Source File: SimpleStatisticStore.java From onos with Apache License 2.0 | 5 votes |
private ConnectPoint buildConnectPoint(FlowRule rule) { PortNumber port = getOutput(rule); if (port == null) { return null; } ConnectPoint cp = new ConnectPoint(rule.deviceId(), port); return cp; }
Example 4
Source File: DistributedStatisticStore.java From onos with Apache License 2.0 | 5 votes |
private ConnectPoint buildConnectPoint(FlowRule rule) { PortNumber port = getOutput(rule); if (port == null) { return null; } ConnectPoint cp = new ConnectPoint(rule.deviceId(), port); return cp; }
Example 5
Source File: DistributedFlowStatisticStore.java From onos with Apache License 2.0 | 5 votes |
private ConnectPoint buildConnectPoint(FlowRule rule) { PortNumber port = getOutput(rule); if (port == null) { return null; } ConnectPoint cp = new ConnectPoint(rule.deviceId(), port); return cp; }