|
21 | 21 | %%% External functions |
22 | 22 | %%%============================================================================= |
23 | 23 |
|
24 | | --spec net_flow(Src :: identifier(), Dst :: identifier()) -> NetFlow :: endpoint(). |
| 24 | +-spec net_flow(dby_identifier(), dby_identifier()) -> dby_endpoint(). |
25 | 25 |
|
26 | 26 | net_flow(Src, Dst) -> |
27 | 27 | {<<"NF:", Src/binary, ":", Dst/binary>>, #{type => of_net_flow}}. |
28 | 28 |
|
29 | | --spec flow_mod(Dpid :: binary(), OFVersion :: of_version(), FlowMod :: flow_mod()) |
30 | | - -> FlowModId :: endpoint(). |
| 29 | +-spec flow_mod(dby_identifier(), of_version(), flow_mod()) -> dby_endpoint(). |
31 | 30 |
|
32 | 31 | flow_mod(Dpid, OFVersion, FlowMod) -> |
33 | 32 | {_Matches, _Instructions, Opts} = FlowMod, |
34 | 33 | Cookie = proplists:get_value(cookie, Opts), |
35 | 34 | {Cookie, #{type => of_flow_mod, dpid => Dpid, of_version => OFVersion}}. |
36 | 35 |
|
37 | 36 |
|
38 | | --spec flow_table(DatapathId :: binary(), FlowMod :: flow_mod()) |
39 | | - -> FlowTableId :: idenfier(). |
| 37 | +-spec flow_table(dby_identifier(), flow_mod()) -> dby_identifier(). |
40 | 38 |
|
41 | 39 | flow_table(DatapahtId, {_Matches, _Actions, Opts}) -> |
42 | 40 | TableNo = proplists:get_value(table_id, Opts), |
|
0 commit comments