Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: floodlight/loxigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: jjin62/loxigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Sep 4, 2014

  1. Initial test of optical OXC experimenter messages

    Praseed Balakrishnan committed Sep 4, 2014
    Copy the full SHA
    16287fb View commit details

Commits on Sep 6, 2014

  1. Initial test of optical OXC experimenter messages

    Praseed Balakrishnan committed Sep 6, 2014
    Copy the full SHA
    f78068b View commit details
  2. Merge branch 'optical_experimenter' of github.com:bpraseed/loxigen in…

    …to optical_experimenter
    Praseed Balakrishnan committed Sep 6, 2014
    Copy the full SHA
    59c0d4e View commit details

Commits on Sep 19, 2014

  1. experimenter optical multipart request and reply messages to work wit…

    …h LINC-OE
    Praseed Balakrishnan committed Sep 19, 2014
    Copy the full SHA
    7f71878 View commit details

Commits on Oct 9, 2014

  1. optical circuit experimenter changes

    Praseed Balakrishnan committed Oct 9, 2014
    Copy the full SHA
    2ed6da0 View commit details

Commits on Dec 2, 2014

  1. changed order of sigtype and sigid

    Conflicts:
    	java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchField.java
    	java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchFields.java
    	java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/CircuitSignalID.java
    Praseed Balakrishnan committed Dec 2, 2014
    Copy the full SHA
    db949d4 View commit details

Commits on Dec 3, 2014

  1. Copy the full SHA
    3efb663 View commit details

Commits on Dec 4, 2014

  1. fixing java pom.xml

    bocon13 committed Dec 4, 2014
    Copy the full SHA
    19ba9fc View commit details

Commits on Jan 13, 2015

  1. Copy the full SHA
    820eaee View commit details

Commits on Jan 28, 2015

  1. Merge remote-tracking branch 'upstream/master'

    Conflicts:
    	c_gen/c_test_gen.py
    	java_gen/java_type.py
    	java_gen/pre-written/pom.xml
    	java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchField.java
    	java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchFields.java
    	loxi_ir/ir_offset.py
    alshabib committed Jan 28, 2015
    Copy the full SHA
    78e24b9 View commit details

Commits on May 28, 2015

  1. Copy the full SHA
    8bd3661 View commit details
  2. Copy the full SHA
    58a73e3 View commit details

Commits on Jun 1, 2015

  1. Copy the full SHA
    65e2257 View commit details

Commits on Jun 4, 2015

  1. Copy the full SHA
    c59ad11 View commit details

Commits on Jun 9, 2015

  1. Copy the full SHA
    1e82b4b View commit details

Commits on Jul 24, 2015

  1. Calient flow and port stat updates

    Marc De Leenheer committed Jul 24, 2015
    Copy the full SHA
    88c0bcb View commit details
  2. Copy the full SHA
    5fde105 View commit details

Commits on Aug 31, 2015

  1. Loxi support for Optical Transport extensions, onos-2472

    Change-Id: I69b9a8839fd899aec531f68103b448dd93cbbe4a
    Yafit Hadar committed Aug 31, 2015
    Copy the full SHA
    f8caac0 View commit details

Commits on Sep 3, 2015

  1. Adding odu_sig_id and och_sig_id to c_gen/

    Change-Id: If0d8763b94ce025aee5ef4421f7e89614ee5c7b5
    bocon13 committed Sep 3, 2015
    Copy the full SHA
    a259e3f View commit details
  2. Merge remote-tracking branch 'upstream/master' into HEAD

    Change-Id: I98c5244ab0c96dcb174d0263d39f5cfbf478907a
    bocon13 committed Sep 3, 2015
    Copy the full SHA
    108d37a View commit details
  3. Disabling DocLint for javadoc generation.

    This fails the build when using Java 1.8, which enables DocLint by default.
    
    Change-Id: I0cd951754b17ee8d61b55e8fb3b28c406faf7c1d
    bocon13 committed Sep 3, 2015
    Copy the full SHA
    cfdd172 View commit details
  4. Changing version to 0.9.0.onos for release

    Change-Id: I46ae989989f7e2ce1876150aa09ac11d8e543e3f
    bocon13 committed Sep 3, 2015
    Copy the full SHA
    7f1194b View commit details
  5. Bumpign openflowj version to 0.9.1.onos-SNAPSHOT

    Change-Id: I53d7858fcd0a57ac7939af10b619c4265b75c3bf
    bocon13 committed Sep 3, 2015
    Copy the full SHA
    14e9fca View commit details

Commits on Oct 13, 2015

  1. ONOS-3104 Add move action to onos-loxi

    Change-Id: Ic8d6ab5359790db912e96faef6c7f49fc7bab0e4
    CNlukai committed Oct 13, 2015
    Copy the full SHA
    2819571 View commit details
  2. ONOS-3105 Add extension of load action to onos-loxi

    Change-Id: I7a124fab5e7054626f3853ea2981ec5a9eb55e34
    CNlukai committed Oct 13, 2015
    Copy the full SHA
    8b9bcbc View commit details

Commits on Oct 23, 2015

  1. [ONOS-3201] Add extension of resubmit action to onos-loxi

    Change-Id: I1cd1f2834501eab9276e176de84783374d553fcf
    BITjiangrui committed Oct 23, 2015
    Copy the full SHA
    e901f95 View commit details
  2. [ONOS-3202] Add extension of resubmit-table action to onos-loxi

    Change-Id: I360d6321781cb5de7802271b438254f06a24b875
    BITjiangrui committed Oct 23, 2015
    Copy the full SHA
    141323d View commit details

Commits on Nov 2, 2015

  1. Copy the full SHA
    b737298 View commit details

Commits on Nov 17, 2015

  1. Adding .gitreview file

    Change-Id: Ia3f1ee664471994c59cf66e2078752399948a6ca
    bocon13 committed Nov 17, 2015
    Copy the full SHA
    5e65532 View commit details
  2. Merge "Adding .gitreview file"

    bocon13 authored and onlab-gerrit committed Nov 17, 2015
    Copy the full SHA
    69f579e View commit details

Commits on Nov 19, 2015

  1. [ONOS-3390] Add nicira extension of reg0~7 match to onos-loxi

    Change-Id: I0ad76da9b205b9e9d3ffbd184149f88858ada7e3
    BITjiangrui committed Nov 19, 2015
    Copy the full SHA
    83b5323 View commit details

Commits on Nov 26, 2015

  1. [ONOS-3291] Openflow LOXI extension for NSH header in SFC

    Change-Id: Ied654da6ece32400cec255785a672137e7bb02c5
    Phaneendra-Huawei committed Nov 26, 2015
    Copy the full SHA
    2b4cd4e View commit details

Commits on Nov 30, 2015

  1. [ONOS-3483] Add extension of set_queue action to onos-loxi

    Change-Id: I3c9f93c3b90e1ec6439d15e9ff6661a165e8861b
    BITjiangrui committed Nov 30, 2015
    Copy the full SHA
    5f00585 View commit details
  2. [ONOS-3484] Add extension of pop_queue action to onos-loxi

    Change-Id: Ic6c7d18ef3066b75ae3029854f3af87c1a1b8ce9
    BITjiangrui committed Nov 30, 2015
    Copy the full SHA
    da916a5 View commit details
  3. Copy the full SHA
    09f4dbc View commit details

Commits on Dec 2, 2015

  1. Copy the full SHA
    b5baacc View commit details

Commits on Dec 9, 2015

  1. [ONOS-3291] Match fields added in LOXI for NSH extension

    Change-Id: I3a51c914afb9ee3c836de2800ae9cb87d9a1470a
    Phaneendra-Huawei committed Dec 9, 2015
    Copy the full SHA
    4c728b3 View commit details

Commits on Dec 15, 2015

  1. Adding of_bitmap_512 and of_checksum_128 to wireshark field_info

    Change-Id: Ic1619ada795933d5ac7ee1373539ae5689dcbcd2
    bocon13 committed Dec 15, 2015
    Copy the full SHA
    81fca3a View commit details
  2. Changing version to 0.9.1.onos for release

    Change-Id: I13aa9926863777bed5465514e87ba2916e5266fa
    bocon13 committed Dec 15, 2015
    Copy the full SHA
    dfc8192 View commit details
  3. Bumping version to 0.9.2.onos-SNAPSHOT

    Change-Id: I31aa0b47db43d8e2f853125cf0c77efe1dc5c6eb
    bocon13 committed Dec 15, 2015
    Copy the full SHA
    ba8da4a View commit details

Commits on Jan 27, 2016

  1. Add Oplink experimenter messages

    Change-Id: I6b0c912fe78fb01081205dc689d3d65dfa151614
    jjin62 committed Jan 27, 2016
    Copy the full SHA
    4fd3902 View commit details

Commits on Feb 3, 2016

  1. Loxigen changes to be compatible with Calient 6.0.4 Software release.

    Change-Id: I62d4bf2ba6663fbbea2a4596a37cca2794cd8ba2
    pailla committed Feb 3, 2016
    Copy the full SHA
    682a821 View commit details

Commits on Mar 2, 2016

  1. Copy the full SHA
    ed3df90 View commit details

Commits on Mar 4, 2016

  1. Copy the full SHA
    2fa3b1e View commit details
  2. Copy the full SHA
    27ea681 View commit details

Commits on Apr 5, 2016

  1. Updating java pom.xml to generate OSGi-ready bundle

    Also, bumping versions for netty and guava, and removing unneeded dependency on logback
    
    Change-Id: Ie56048552deee40a1acbb115a03ade0c87e48153
    bocon13 committed Apr 5, 2016
    Copy the full SHA
    28e0563 View commit details

Commits on May 12, 2016

  1. Extensions added as per new OVS NSH patch

    Change-Id: Iae1d9db03dea20120d9c689ea25d262104e937e4
    Phaneendra-Huawei committed May 12, 2016
    Copy the full SHA
    adcb3e7 View commit details

Commits on May 31, 2016

  1. bumping version to 0.9.4

    Change-Id: I2bf4df8cd6c76de4374c887af1cfd8ad39379724
    alshabib committed May 31, 2016
    Copy the full SHA
    535418c View commit details

Commits on Jun 1, 2016

  1. OpenflowJ 0.9.4.onos

    Change-Id: I9e9c7b11bca65660875c99d93a83a77bbae819e7
    bocon13 committed Jun 1, 2016
    Copy the full SHA
    a21e0bc View commit details
  2. bumping version to 0.9.5.onos-SNAPSHOT

    Change-Id: Ia836fcdb9340d465f52ae7b507288107c55daa25
    bocon13 committed Jun 1, 2016
    Copy the full SHA
    a635a94 View commit details
Showing with 3,193 additions and 41 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 .gitreview
  3. +3 −0 c_gen/c_code_gen.py
  4. +7 −1 c_gen/c_test_gen.py
  5. +36 −2 c_gen/of_g_legacy.py
  6. +2 −0 c_gen/templates/loci_dump.h
  7. +2 −0 c_gen/templates/loci_show.h
  8. +46 −0 c_gen/templates/of_wire_buf.h
  9. +118 −1 java_gen/java_type.py
  10. +94 −29 java_gen/pre-written/pom.xml
  11. +123 −0 java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchField.java
  12. +38 −0 java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/protocol/match/MatchFields.java
  13. +137 −0 java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/CircuitSignalID.java
  14. +162 −0 java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OFBitMask256.java
  15. +182 −0 java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OduSignalID.java
  16. +2 −0 java_gen/pre-written/src/test/java/org/projectfloodlight/protocol/OFOxmTest.java
  17. +12 −0 ...gen/pre-written/src/test/java/org/projectfloodlight/protocol/match/MatchFieldIteration13Test.java
  18. +1 −1 java_gen/pre-written/src/test/java/org/projectfloodlight/protocol/match/MatchFieldIterationBase.java
  19. +8 −0 loxi_ir/ir_offset.py
  20. +33 −0 openflow_input/calient
  21. +94 −0 openflow_input/calient_flow_stats
  22. +109 −0 openflow_input/calient_port_desc_stats
  23. +54 −0 openflow_input/calient_port_stats
  24. +184 −0 openflow_input/circuit
  25. +38 −0 openflow_input/nicira_load
  26. +40 −0 openflow_input/nicira_move
  27. +36 −0 openflow_input/nicira_pop_queue
  28. +38 −0 openflow_input/nicira_resubmit
  29. +38 −0 openflow_input/nicira_resubmit_table
  30. +46 −0 openflow_input/nicira_set_nsh
  31. +37 −0 openflow_input/nicira_set_queue
  32. +14 −0 openflow_input/ofdpa
  33. +42 −0 openflow_input/ofdpa_actions
  34. +40 −0 openflow_input/ofdpa_match_fields
  35. +169 −0 openflow_input/oplink
  36. +331 −0 openflow_input/optical_tras_ext
  37. +169 −0 openflow_input/oxm_nicira_nsh
  38. +126 −0 openflow_input/oxm_nicira_reg
  39. +61 −0 openflow_input/oxm_nicira_tun
  40. BIN openflowj-0.9.6.onosi-SNAPSHOT.jar
  41. BIN openflowj-0.9.8.onos-SNAPSHOT.jar
  42. +2 −0 py_gen/oftype.py
  43. +85 −0 test_data/of13/exp_port_desc_reply.data
  44. +86 −0 test_data/of13/exp_port_desc_reply_och
  45. +87 −0 test_data/of13/exp_port_desc_reply_oms
  46. +87 −0 test_data/of13/exp_port_desc_reply_otu
  47. +14 −0 test_data/of13/exp_port_desc_request.data
  48. +35 −2 test_data/of13/flow_add.data
  49. +32 −2 test_data/of13/flow_delete.data
  50. +35 −2 test_data/of13/flow_modify.data
  51. +35 −1 test_data/of13/match_v3.data
  52. +8 −0 wireshark_gen/field_info.py
  53. +8 −0 wireshark_gen/templates/_oftype_readers.lua
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -14,3 +14,4 @@ openflowj-loxi
/bin
*,cover
/.coverage
*.iml
6 changes: 6 additions & 0 deletions .gitreview
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[gerrit]
host=gerrit.onosproject.org
port=29418
project=onos-loxi.git
defaultremote=origin
defaultbranch=master
3 changes: 3 additions & 0 deletions c_gen/c_code_gen.py
Original file line number Diff line number Diff line change
@@ -659,10 +659,13 @@ def base_h_content(out):
/* Currently these are categorized as scalars */
typedef char of_port_name_t[OF_MAX_PORT_NAME_LEN];
typedef char of_app_code_t[OF_APP_CODE_LEN];
typedef char of_table_name_t[OF_MAX_TABLE_NAME_LEN];
typedef char of_desc_str_t[OF_DESC_STR_LEN];
typedef char of_serial_num_t[OF_SERIAL_NUM_LEN];
typedef char of_str64_t[64];
typedef char of_str32_t[32];
typedef char of_str6_t[6];
typedef struct of_bitmap_128_s {
uint64_t hi;
8 changes: 7 additions & 1 deletion c_gen/c_test_gen.py
Original file line number Diff line number Diff line change
@@ -93,6 +93,8 @@ def var_name_map(m_type):
of_desc_str_t="desc_str",
of_serial_num_t="ser_num",
of_str64_t="str64",
of_str32_t="str32",
of_str6_t="str6",
of_mac_addr_t="mac_addr",
of_ipv6_t="ipv6",
# Non-scalars; more TBD
@@ -107,6 +109,9 @@ def var_name_map(m_type):
of_bitmap_128_t="bitmap_128",
of_bitmap_512_t="bitmap_512",
of_checksum_128_t="checksum_128",
#Circuit extensions
of_app_code_t="app_code",
of_sig_id_t="sig_id",
)

if m_type.find("of_list_") == 0:
@@ -121,7 +126,8 @@ def var_name_map(m_type):
string_types = [ "of_port_name_t", "of_table_name_t",
"of_desc_str_t", "of_serial_num_t", "of_mac_addr_t",
"of_ipv6_t", "of_bitmap_128_t", "of_checksum_128_t",
"of_str64_t", "of_bitmap_512_t"]
"of_str64_t", "of_str32_t", "of_str6_t",
"of_app_code_t", "of_bitmap_512_t"]

scalar_types = integer_types[:]
scalar_types.extend(string_types)
38 changes: 36 additions & 2 deletions c_gen/of_g_legacy.py
Original file line number Diff line number Diff line change
@@ -86,7 +86,9 @@
OF_MAX_PORT_NAME_LEN = 16,
OF_ETH_ALEN = 6,
OF_DESC_STR_LEN = 256,
OF_SERIAL_NUM_LEN = 32
OF_SERIAL_NUM_LEN = 32,
OF_APP_CODE_LEN = 15,
OF_SIGID_LEN=6,
)

## List of mixed data types
@@ -162,6 +164,31 @@
5: "of_match_v3_t", # Currently uses same match as 1.2 (v3).
"short_name":"match"
},
of_calient_port_desc_stats_entry_t = {
1: "of_calient_port_desc_stats_entry_t",
2: "of_calient_port_desc_stats_entry_t",
3: "of_calient_port_desc_stats_entry_t",
4: "of_calient_port_desc_stats_entry_t",
5: "of_calient_port_desc_stats_entry_t",
"short_name":"calient_port_desc_stats_entry"
},
of_odu_sig_id_t = {
1: "of_odu_sig_id_t",
2: "of_odu_sig_id_t",
3: "of_odu_sig_id_t",
4: "of_odu_sig_id_t",
5: "of_odu_sig_id_t",
"short_name":"odu_sig_id"
},
of_och_sig_id_t = {
1: "of_sig_id_t",
2: "of_sig_id_t",
3: "of_sig_id_t",
4: "of_sig_id_t",
5: "of_sig_id_t",
"short_name":"sig_id"
},

)

## Base data types
@@ -199,6 +226,8 @@
of_serial_num_t = dict(bytes=ofp_constants["OF_SERIAL_NUM_LEN"],
short_name="ser_num"),
of_str64_t = dict(bytes=64, short_name="str64"),
of_str32_t = dict(bytes=32, short_name="str32"),
of_str6_t = dict(bytes=6, short_name="str6"),
of_match_v1_t = dict(bytes=40, to_w="match_v1_hton",
from_w="match_v1_ntoh",
short_name="match_v1"),
@@ -215,14 +244,19 @@
of_bitmap_128_t = dict(bytes=16, short_name="bitmap_128"),
of_bitmap_512_t = dict(bytes=64, short_name="bitmap_512"),
of_checksum_128_t = dict(bytes=16, short_name="checksum_128"),
of_app_code_t = dict(bytes=ofp_constants["OF_APP_CODE_LEN"],
short_name="app_code"),
of_sig_id_t = dict(bytes=ofp_constants["OF_SIGID_LEN"],
short_name="sig_id"),
of_odu_sig_id_t = dict(bytes=1, short_name="odu_sig_id"),
)

of_scalar_types = ["char", "uint8_t", "uint16_t", "uint32_t", "uint64_t",
"of_port_no_t", "of_fm_cmd_t", "of_wc_bmap_t",
"of_match_bmap_t", "of_port_name_t", "of_table_name_t",
"of_desc_str_t", "of_serial_num_t", "of_mac_addr_t",
"of_ipv6_t", "of_ipv4_t", "of_bitmap_128_t", "of_checksum_128_t",
"of_str64_t", "of_bitmap_512_t"]
"of_str64_t", "of_str32_t", "of_str6_t", "of_bitmap_512_t"]

##
# LOXI identifiers
2 changes: 2 additions & 0 deletions c_gen/templates/loci_dump.h
Original file line number Diff line number Diff line change
@@ -91,6 +91,8 @@ typedef int (*loci_obj_dump_f)(loci_writer_f writer, void *cookie, of_object_t *
#define LOCI_DUMP_desc_str(writer, cookie, val) LOCI_DUMP_string(writer, cookie, val)
#define LOCI_DUMP_ser_num(writer, cookie, val) LOCI_DUMP_string(writer, cookie, val)
#define LOCI_DUMP_str64(writer, cookie, val) LOCI_DUMP_string(writer, cookie, val)
#define LOCI_DUMP_str6(writer, cookie, val) LOCI_DUMP_string(writer, cookie, val)
#define LOCI_DUMP_str32(writer, cookie, val) LOCI_DUMP_string(writer, cookie, val)

int loci_dump_match(loci_writer_f writer, void* cookie, of_match_t *match);
#define LOCI_DUMP_match(writer, cookie, val) loci_dump_match(writer, cookie, &val)
2 changes: 2 additions & 0 deletions c_gen/templates/loci_show.h
Original file line number Diff line number Diff line change
@@ -105,6 +105,8 @@ typedef int (*loci_obj_show_f)(loci_writer_f writer,
#define LOCI_SHOW_desc_str(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_ser_num(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_str64(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_str6(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_str32(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)

int loci_show_match(loci_writer_f writer, void *cookie, of_match_t *match);
#define LOCI_SHOW_match(writer, cookie, val) loci_show_match(writer, cookie, &val)
46 changes: 46 additions & 0 deletions c_gen/templates/of_wire_buf.h
Original file line number Diff line number Diff line change
@@ -888,6 +888,52 @@ _wbuf_octets_get(of_wire_buffer_t *wbuf, int offset, uint8_t *dst, int bytes) {
#define of_wire_buffer_checksum_128_set(buf, offset, checksum) \
(of_wire_buffer_u64_set(buf, offset, checksum.hi), of_wire_buffer_u64_set(buf, offset+8, checksum.lo))

/**
* Get a str32 string from a wire buffer
* @param wbuf The pointer to the wire buffer structure
* @param offset Offset in the wire buffer
* @param s The string
*
* Uses the octets function.
*/

#define of_wire_buffer_str32_get(buf, offset, s) \
_wbuf_octets_get(buf, offset, (uint8_t *)s, 32)

/**
* Set a str32 string in a wire buffer
* @param wbuf The pointer to the wire buffer structure
* @param offset Offset in the wire buffer
* @param s Where to store the str32
*
* Uses the octets function.
*/

#define of_wire_buffer_str32_set(buf, offset, s) \
_wbuf_octets_set(buf, offset, (uint8_t *)s, 32)

/**
* Get a str6 string from a wire buffer
* @param wbuf The pointer to the wire buffer structure
* @param offset Offset in the wire buffer
* @param s The string
*
* Uses the octets function.
*/

#define of_wire_buffer_str6_get(buf, offset, s) \
_wbuf_octets_get(buf, offset, (uint8_t *)s, 6)
/**
* Set a str6 string in a wire buffer
* @param wbuf The pointer to the wire buffer structure
* @param offset Offset in the wire buffer
* @param s Where to store the str6
*
* Uses the octets function.
*/

#define of_wire_buffer_str6_set(buf, offset, s) \
_wbuf_octets_set(buf, offset, (uint8_t *)s, 6)

/**
* Get a bitmap_512 from a wire buffer
119 changes: 118 additions & 1 deletion java_gen/java_type.py
Original file line number Diff line number Diff line change
@@ -369,10 +369,13 @@ def gen_fixed_length_string_jtype(length):
default="VFI.ZERO")

port_name = gen_fixed_length_string_jtype(16)
app_code = gen_fixed_length_string_jtype(15)
desc_str = gen_fixed_length_string_jtype(256)
serial_num = gen_fixed_length_string_jtype(32)
table_name = gen_fixed_length_string_jtype(32)
str64 = gen_fixed_length_string_jtype(64)
str32 = gen_fixed_length_string_jtype(32)
str6 = gen_fixed_length_string_jtype(6)
ipv4 = JType("IPv4Address") \
.op(read="IPv4Address.read4Bytes(bb)", \
write="$name.write4Bytes(bb)",
@@ -481,6 +484,10 @@ def gen_fixed_length_string_jtype(length):
.op(read='OFBitMask128.read16Bytes(bb)',
write='$name.write16Bytes(bb)',
default='OFBitMask128.NONE')
port_bitmap_256 = JType('OFBitMask256') \
.op(read='OFBitMask256.read32Bytes(bb)',
write='$name.write32Bytes(bb)',
default='OFBitMask256.NONE')
port_bitmap_512 = JType('OFBitMask512') \
.op(read='OFBitMask512.read64Bytes(bb)',
write='$name.write64Bytes(bb)',
@@ -541,6 +548,12 @@ def gen_fixed_length_string_jtype(length):
.op(read="OFBufferId.of(bb.readInt())", write="bb.writeInt($name.getInt())", default="OFBufferId.NO_BUFFER")
lag_id = JType("LagId") \
.op(version=ANY, read="LagId.read4Bytes(bb)", write="$name.write4Bytes(bb)", default="LagId.NONE")
odu_sig_id = JType("OduSignalID") \
.op(read="OduSignalID.readFrom(bb)", \
write="$name.writeTo(bb)",
default='OduSignalID.DEFAULT')
sig_id = JType("CircuitSignalID") \
.op(version=ANY, read="CircuitSignalID.read6Bytes(bb)", write="$name.write6Bytes(bb)", default="CircuitSignalID.NONE")
vrf = JType("VRF") \
.op(version=ANY, read="VRF.read4Bytes(bb)", write="$name.write4Bytes(bb)", default="VRF.ZERO")
class_id = JType("ClassId") \
@@ -569,6 +582,8 @@ def gen_fixed_length_string_jtype(length):

generic_t = JType("T")

calient_port_desc_stats_entry = JType('OFCalientPortDescStatsEntry').op(read='OFCalientPortDescStatsEntryVer$version.READER.readFrom(bb)', write='$name.writeTo(bb)')

table_desc = JType('OFTableDesc') \
.op(read='OFTableDescVer$version.READER.readFrom(bb)', \
write='$name.writeTo(bb)')
@@ -608,17 +623,25 @@ def gen_fixed_length_string_jtype(length):
'of_port_name_t': port_name,
'of_table_name_t': table_name,
'of_str64_t': str64,
'of_str32_t': str32,
'of_str6_t': str6,
'of_calient_port_desc_stats_entry_t': calient_port_desc_stats_entry,
'of_ipv4_t': ipv4,
'of_ipv6_t': ipv6,
'of_wc_bmap_t': flow_wildcards,
'of_oxm_t': oxm,
'of_oxs_t': oxs,
'of_meter_features_t': meter_features,
'of_bitmap_128_t': port_bitmap_128,
'of_bitmap_256_t': port_bitmap_256,
'of_bitmap_512_t': port_bitmap_512,
'of_checksum_128_t': u128,
'of_bsn_vport_t': bsn_vport,
'of_app_code_t': app_code,
'of_sig_id_t': sig_id,
'of_table_desc_t': table_desc,
'of_odu_sig_id_t': odu_sig_id,
'of_och_sig_id_t' : sig_id,
'of_controller_status_entry_t' : controller_status_entry,
'of_time_t' : of_time,
'of_header_t' : of_message,
@@ -698,6 +721,9 @@ def gen_fixed_length_string_jtype(length):
'of_oxm_bsn_in_ports_128' : { 'value': port_bitmap_128 },
'of_oxm_bsn_in_ports_128_masked' : { 'value': port_bitmap_128, 'value_mask': port_bitmap_128 },

'of_oxm_bsn_in_ports_256' : { 'value': port_bitmap_256 },
'of_oxm_bsn_in_ports_256_masked' : { 'value': port_bitmap_256, 'value_mask': port_bitmap_256 },

'of_oxm_bsn_in_ports_512' : { 'value': port_bitmap_512 },
'of_oxm_bsn_in_ports_512_masked' : { 'value': port_bitmap_512, 'value_mask': port_bitmap_512 },

@@ -814,10 +840,101 @@ def gen_fixed_length_string_jtype(length):
'of_bsn_log': { 'data': var_string },

'of_features_reply' : { 'auxiliary_id' : of_aux_id},
'of_oxm_och_sigtype' : { 'value' : u8obj },
'of_oxm_och_sigtype_basic' : { 'value' : u8obj },
'of_oxm_och_sigid' : {'value' : sig_id},
'of_oxm_och_sigid_basic' : {'value' : sig_id},

'of_oxm_och_sigatt' : { 'value' : u32obj },
'of_oxm_och_sigatt_basic' : { 'value' : u32obj },

'of_bundle_add_msg' : { 'data' : of_message },

'of_oxm_exp_odu_sigtype' : { 'value' : u8obj },
'of_oxm_exp_och_sigtype' : { 'value' : u8obj },

'of_oxm_reg0' : { 'value' : u32obj },
'of_oxm_reg0_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg1' : { 'value' : u32obj },
'of_oxm_reg1_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg2' : { 'value' : u32obj },
'of_oxm_reg2_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg3' : { 'value' : u32obj },
'of_oxm_reg3_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg4' : { 'value' : u32obj },
'of_oxm_reg4_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg5' : { 'value' : u32obj },
'of_oxm_reg5_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg6' : { 'value' : u32obj },
'of_oxm_reg6_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_reg7' : { 'value' : u32obj },
'of_oxm_reg7_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsp' : { 'value' : u32obj },
'of_oxm_nsp_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsi' : { 'value' : u8obj },
'of_oxm_nsi_masked' : { 'value' : u8obj, 'value_mask' : u8obj },

'of_oxm_nsh_c1' : { 'value' : u32obj },
'of_oxm_nsh_c1_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsh_c2' : { 'value' : u32obj },
'of_oxm_nsh_c2_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsh_c3' : { 'value' : u32obj },
'of_oxm_nsh_c3_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsh_c4' : { 'value' : u32obj },
'of_oxm_nsh_c4_masked' : { 'value' : u32obj, 'value_mask' : u32obj },

'of_oxm_nsh_mdtype' : { 'value' : u8obj },
'of_oxm_nsh_mdtype_masked' : { 'value' : u8obj, 'value_mask' : u8obj },

'of_oxm_nsh_np' : { 'value' : u8obj },
'of_oxm_nsh_np_masked' : { 'value' : u8obj, 'value_mask' : u8obj },

'of_oxm_encap_eth_src' : { 'value' : mac_addr },
'of_oxm_encap_eth_src_masked' : { 'value' : mac_addr, 'value_mask' : mac_addr },

'of_oxm_encap_eth_dst' : { 'value' : mac_addr },
'of_oxm_encap_eth_dst_masked' : { 'value' : mac_addr, 'value_mask' : mac_addr },

'of_oxm_encap_eth_type' : { 'value' : u16obj },
'of_oxm_encap_eth_type_masked' : { 'value' : u16obj, 'value_mask' : u16obj },

'of_oxm_tun_flags' : { 'value' : u16obj },
'of_oxm_tun_flags_masked' : { 'value' : u16obj, 'value_mask' : u16obj },

'of_oxm_tun_gbp_id' : { 'value' : u16obj },
'of_oxm_tun_gbp_id_masked' : { 'value' : u16obj, 'value_mask' : u16obj },

'of_oxm_tun_gbp_flags' : { 'value' : u8obj },
'of_oxm_tun_gbp_flags_masked' : { 'value' : u8obj, 'value_mask' : u8obj },

'of_oxm_tun_gpe_np' : { 'value' : u8obj },
'of_oxm_tun_gpe_np_masked' : { 'value' : u8obj, 'value_mask' : u8obj },

'of_oxm_tun_gpe_flags' : { 'value' : u8obj },
'of_oxm_tun_gpe_flags_masked' : { 'value' : u8obj, 'value_mask' : u8obj },
'of_flow_stats_request' : { 'out_group' : of_group },
'of_flow_lightweight_stats_request' : { 'out_group' : of_group }
'of_flow_lightweight_stats_request' : { 'out_group' : of_group },

'of_oxm_ofdpa_mpls_type' : { 'value': u16obj },

'of_oxm_ofdpa_qos_index': { 'value': u8obj },

'of_oxm_ofdpa_mpls_l2_port': { 'value': u32obj },
'of_oxm_ofdpa_mpls_l2_port_masked': { 'value': u32obj, 'value_mask': u32obj },

'of_oxm_ofdpa_ovid': { 'value': u16obj },
}


Loading