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);
}
Aggregations