Skip to content

Commit

Permalink
Initial test of optical OXC experimenter messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Praseed Balakrishnan committed Sep 4, 2014
1 parent e9f250b commit 16287fb
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions c_gen/c_test_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def var_name_map(m_type):
of_bsn_vport_q_in_q_t="vport",
of_bitmap_128_t="bitmap_128",
of_checksum_128_t="checksum_128",
#Circuit extensions
oxm_of_och_sig_id_t="sig_id",
)

if m_type.find("of_list_") == 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ private MatchField(final String name, final MatchFields id, Prerequisite<?>... p
public final static MatchField<ClassId> BSN_VLAN_XLATE_PORT_GROUP_ID =
new MatchField<ClassId>("bsn_vlan_xlate_port_group_id", MatchFields.BSN_VLAN_XLATE_PORT_GROUP_ID);


public final static MatchField<U64> OCH_SIGID =
new MatchField<U64>("och_sigid",
MatchFields.OCH_SIGID);

public final static MatchField<U64> OCH_SIGTYPE =
new MatchField<U64>("och_sigid",
MatchFields.OCH_SIGTYPE);

public String getName() {
return name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ public enum MatchFields {
BSN_UDF7,
BSN_TCP_FLAGS,
BSN_VLAN_XLATE_PORT_GROUP_ID,
OCH_SIGID,
OCH_SIGTYPE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ public void testGetCanonicalNormalMask() {
OFOxm<IPv4Address> canonical = ipv4SrcMasked.getCanonical();
assertEquals(ipv4SrcMasked, canonical);
}


}
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
package org.projectfloodlight.protocol.match;

import org.junit.Test;
import org.projectfloodlight.openflow.protocol.OFFactories;
import org.projectfloodlight.openflow.protocol.OFVersion;
import org.projectfloodlight.openflow.protocol.match.Match;
import org.projectfloodlight.openflow.protocol.match.MatchField;
import org.projectfloodlight.openflow.types.U64;

public class MatchFieldIteration13Test extends MatchFieldIterationBase {
public MatchFieldIteration13Test() {
super(OFFactories.getFactory(OFVersion.OF_13));
}

@Test
public void matchCircuitFields()
{
Match.Builder builder = factory.buildMatchV3().setExact(MatchField
.OCH_SIGTYPE, U64.ZERO);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class MatchFieldIterationBase {

private OFFactory factory;
protected OFFactory factory;

protected MatchFieldIterationBase(OFFactory factory) {
this.factory = factory;
Expand Down
16 changes: 16 additions & 0 deletions openflow_input/oxm-1.3
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ struct of_oxm_tunnel_id_masked : of_oxm {
uint64_t value;
uint64_t value_mask;
};

struct of_oxm_och_sigtype : of_oxm {
uint32_t type_len == 0x80005c08;
uint64_t value;
};


struct of_oxm_och_sigid : of_oxm {
uint32_t type_len == 0x80005d10;
uint64_t value;
};





0 comments on commit 16287fb

Please sign in to comment.