Search in sources :

Example 1 with NiciraSetTunnelDst

use of org.onosproject.driver.extensions.NiciraSetTunnelDst in project onos by opennetworkinglab.

the class NiciraSetTunnelDstCodec method decode.

@Override
public NiciraSetTunnelDst decode(ObjectNode json, CodecContext context) {
    if (json == null || !json.isObject()) {
        return null;
    }
    // parse tunnel destination IP address
    String dstIp = nullIsIllegal(json.get(TUNNEL_DST), TUNNEL_DST + MISSING_MEMBER_MESSAGE).asText();
    Ip4Address tunnelDst = Ip4Address.valueOf(dstIp);
    return new NiciraSetTunnelDst(tunnelDst);
}
Also used : NiciraSetTunnelDst(org.onosproject.driver.extensions.NiciraSetTunnelDst) Ip4Address(org.onlab.packet.Ip4Address)

Aggregations

Ip4Address (org.onlab.packet.Ip4Address)1 NiciraSetTunnelDst (org.onosproject.driver.extensions.NiciraSetTunnelDst)1