use of org.opendaylight.genius.mdsalutil.ActionInfo in project genius by opendaylight.
the class ActionSetFieldEthernetDestinationTest method generateAction.
@Test
public void generateAction() {
ActionInfo actionInfo = new ActionSetFieldEthernetDestination(new MacAddress(MAC_ADDRESS));
actionInfo.buildAction();
assertEquals("new ActionSetFieldEthernetDestination(0, new MacAddress(\"" + MAC_ADDRESS + "\"))", generator.getExpression(actionInfo));
}
use of org.opendaylight.genius.mdsalutil.ActionInfo in project genius by opendaylight.
the class ActionSetFieldEthernetSourceTest method generateAction.
@Test
public void generateAction() {
ActionInfo actionInfo = new ActionSetFieldEthernetSource(new MacAddress(MAC_ADDRESS));
actionInfo.buildAction();
assertEquals("new ActionSetFieldEthernetSource(0, new MacAddress(\"" + MAC_ADDRESS + "\"))", generator.getExpression(actionInfo));
}
use of org.opendaylight.genius.mdsalutil.ActionInfo in project genius by opendaylight.
the class ActionSetIcmpTypeTest method generateAction.
@Test
public void generateAction() {
ActionInfo actionInfo = new ActionSetIcmpType(TYPE);
assertEquals("new ActionSetIcmpType(0, 2 as short)", generator.getExpression(actionInfo));
}
use of org.opendaylight.genius.mdsalutil.ActionInfo in project genius by opendaylight.
the class ActionSetSourceIpTest method generateAction.
@Test
public void generateAction() {
ActionInfo actionInfo = new ActionSetSourceIp(IP_ADDRESS);
assertEquals("new ActionSetSourceIp(0, new Ipv4Prefix(\"" + IP_ADDRESS + "/" + IP_MASK + "\"))", generator.getExpression(actionInfo));
}
use of org.opendaylight.genius.mdsalutil.ActionInfo in project genius by opendaylight.
the class ActionSetSourceIpv6Test method generateAction.
@Test
public void generateAction() {
ActionInfo actionInfo = new ActionSetSourceIpv6(IP_ADDRESS);
assertEquals("new ActionSetSourceIpv6(0, new Ipv6Prefix(\"" + IP_ADDRESS + "/" + IP_MASK + "\"))", generator.getExpression(actionInfo));
}
Aggregations