/**
- * Autogenerated by Thrift Compiler (0.9.1)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
-package org.opendaylight.netvirt.bgpmanager.thrift.gen;
-
+ package org.opendaylight.netvirt.bgpmanager.thrift.gen;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-13")
public class BgpUpdater {
public interface Iface {
- public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException;
+ public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi) throws org.apache.thrift.TException;
- public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException;
+ public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi) throws org.apache.thrift.TException;
public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
public interface AsyncIface {
- public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
super(iprot, oprot);
}
- public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException
+ public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi) throws org.apache.thrift.TException
{
- send_onUpdatePushRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac);
+ send_onUpdatePushRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, afi);
}
- public void send_onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException
+ public void send_onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi) throws org.apache.thrift.TException
{
onUpdatePushRoute_args args = new onUpdatePushRoute_args();
args.setP_type(p_type);
args.setL3label(l3label);
args.setL2label(l2label);
args.setRoutermac(routermac);
- sendBase("onUpdatePushRoute", args);
+ args.setAfi(afi);
+ sendBaseOneway("onUpdatePushRoute", args);
}
- public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException
+ public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi) throws org.apache.thrift.TException
{
- send_onUpdateWithdrawRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label);
+ send_onUpdateWithdrawRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, afi);
}
- public void send_onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException
+ public void send_onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi) throws org.apache.thrift.TException
{
onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
args.setP_type(p_type);
args.setMacaddress(macaddress);
args.setL3label(l3label);
args.setL2label(l2label);
- sendBase("onUpdateWithdrawRoute", args);
+ args.setAfi(afi);
+ sendBaseOneway("onUpdateWithdrawRoute", args);
}
public void onStartConfigResyncNotification() throws org.apache.thrift.TException
public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
{
onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
- sendBase("onStartConfigResyncNotification", args);
+ sendBaseOneway("onStartConfigResyncNotification", args);
}
public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
args.setPrefix(prefix);
args.setErrCode(errCode);
args.setErrSubcode(errSubcode);
- sendBase("onNotificationSendEvent", args);
+ sendBaseOneway("onNotificationSendEvent", args);
}
}
super(protocolFactory, clientManager, transport);
}
- public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, resultHandler, this, ___protocolFactory, ___transport);
+ onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, afi, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
private int l3label;
private int l2label;
private String routermac;
- public onUpdatePushRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private af_afi afi;
+ public onUpdatePushRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, true);
this.p_type = p_type;
this.rd = rd;
this.l3label = l3label;
this.l2label = l2label;
this.routermac = routermac;
+ this.afi = afi;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
onUpdatePushRoute_args args = new onUpdatePushRoute_args();
args.setP_type(p_type);
args.setRd(rd);
args.setL3label(l3label);
args.setL2label(l2label);
args.setRoutermac(routermac);
+ args.setAfi(afi);
args.write(prot);
prot.writeMessageEnd();
}
}
}
- public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
- onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, resultHandler, this, ___protocolFactory, ___transport);
+ onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, afi, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
private String macaddress;
private int l3label;
private int l2label;
- public onUpdateWithdrawRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private af_afi afi;
+ public onUpdateWithdrawRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, true);
this.p_type = p_type;
this.rd = rd;
this.macaddress = macaddress;
this.l3label = l3label;
this.l2label = l2label;
+ this.afi = afi;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
args.setP_type(p_type);
args.setRd(rd);
args.setMacaddress(macaddress);
args.setL3label(l3label);
args.setL2label(l2label);
+ args.setAfi(afi);
args.write(prot);
prot.writeMessageEnd();
}
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
args.write(prot);
prot.writeMessageEnd();
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
onNotificationSendEvent_args args = new onNotificationSendEvent_args();
args.setPrefix(prefix);
args.setErrCode(errCode);
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
- private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
+ private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
- super(iface, getProcessMap(new HashMap<>()));
+ super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
}
public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
- iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac);
+ iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac, args.afi);
return null;
}
}
}
public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
- iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label);
+ iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.afi);
return null;
}
}
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
- private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+ private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
- super(iface, getProcessMap(new HashMap<>()));
+ super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
}
protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
}
public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
- iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac,resultHandler);
+ iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac, args.afi,resultHandler);
}
}
}
public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
- iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label,resultHandler);
+ iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.afi,resultHandler);
}
}
private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)9);
private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)10);
private static final org.apache.thrift.protocol.TField ROUTERMAC_FIELD_DESC = new org.apache.thrift.protocol.TField("routermac", org.apache.thrift.protocol.TType.STRING, (short)11);
+ private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)12);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
public int l3label; // required
public int l2label; // required
public String routermac; // required
+ /**
+ *
+ * @see af_afi
+ */
+ public af_afi afi; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
MACADDRESS((short)8, "macaddress"),
L3LABEL((short)9, "l3label"),
L2LABEL((short)10, "l2label"),
- ROUTERMAC((short)11, "routermac");
+ ROUTERMAC((short)11, "routermac"),
+ /**
+ *
+ * @see af_afi
+ */
+ AFI((short)12, "afi");
- private static final Map<String, _Fields> byName = new HashMap<>();
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
return L2LABEL;
case 11: // ROUTERMAC
return ROUTERMAC;
+ case 12: // AFI
+ return AFI;
default:
return null;
}
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
}
String macaddress,
int l3label,
int l2label,
- String routermac)
+ String routermac,
+ af_afi afi)
{
this();
this.p_type = p_type;
this.l2label = l2label;
setL2labelIsSet(true);
this.routermac = routermac;
+ this.afi = afi;
}
/**
if (other.isSetRoutermac()) {
this.routermac = other.routermac;
}
+ if (other.isSetAfi()) {
+ this.afi = other.afi;
+ }
}
public onUpdatePushRoute_args deepCopy() {
setL2labelIsSet(false);
this.l2label = 0;
this.routermac = null;
+ this.afi = null;
}
/**
}
}
+ /**
+ *
+ * @see af_afi
+ */
+ public af_afi getAfi() {
+ return this.afi;
+ }
+
+ /**
+ *
+ * @see af_afi
+ */
+ public onUpdatePushRoute_args setAfi(af_afi afi) {
+ this.afi = afi;
+ return this;
+ }
+
+ public void unsetAfi() {
+ this.afi = null;
+ }
+
+ /** Returns true if field afi is set (has been assigned a value) and false otherwise */
+ public boolean isSetAfi() {
+ return this.afi != null;
+ }
+
+ public void setAfiIsSet(boolean value) {
+ if (!value) {
+ this.afi = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case P_TYPE:
}
break;
+ case AFI:
+ if (value == null) {
+ unsetAfi();
+ } else {
+ setAfi((af_afi)value);
+ }
+ break;
+
}
}
case ROUTERMAC:
return getRoutermac();
+ case AFI:
+ return getAfi();
+
}
throw new IllegalStateException();
}
return isSetL2label();
case ROUTERMAC:
return isSetRoutermac();
+ case AFI:
+ return isSetAfi();
}
throw new IllegalStateException();
}
return false;
}
+ boolean this_present_afi = true && this.isSetAfi();
+ boolean that_present_afi = true && that.isSetAfi();
+ if (this_present_afi || that_present_afi) {
+ if (!(this_present_afi && that_present_afi))
+ return false;
+ if (!this.afi.equals(that.afi))
+ return false;
+ }
+
return true;
}
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+ boolean present_p_type = true && (isSetP_type());
+ list.add(present_p_type);
+ if (present_p_type)
+ list.add(p_type.getValue());
+ boolean present_rd = true && (isSetRd());
+ list.add(present_rd);
+ if (present_rd)
+ list.add(rd);
+ boolean present_prefix = true && (isSetPrefix());
+ list.add(present_prefix);
+ if (present_prefix)
+ list.add(prefix);
+ boolean present_prefixlen = true;
+ list.add(present_prefixlen);
+ if (present_prefixlen)
+ list.add(prefixlen);
+ boolean present_nexthop = true && (isSetNexthop());
+ list.add(present_nexthop);
+ if (present_nexthop)
+ list.add(nexthop);
+ boolean present_ethtag = true;
+ list.add(present_ethtag);
+ if (present_ethtag)
+ list.add(ethtag);
+ boolean present_esi = true && (isSetEsi());
+ list.add(present_esi);
+ if (present_esi)
+ list.add(esi);
+ boolean present_macaddress = true && (isSetMacaddress());
+ list.add(present_macaddress);
+ if (present_macaddress)
+ list.add(macaddress);
+ boolean present_l3label = true;
+ list.add(present_l3label);
+ if (present_l3label)
+ list.add(l3label);
+ boolean present_l2label = true;
+ list.add(present_l2label);
+ if (present_l2label)
+ list.add(l2label);
+ boolean present_routermac = true && (isSetRoutermac());
+ list.add(present_routermac);
+ if (present_routermac)
+ list.add(routermac);
+ boolean present_afi = true && (isSetAfi());
+ list.add(present_afi);
+ if (present_afi)
+ list.add(afi.getValue());
+ return list.hashCode();
}
@Override
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAfi()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
sb.append(this.routermac);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("afi:");
+ if (this.afi == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.afi);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 12: // AFI
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.afi = af_afi.findByValue(iprot.readI32());
+ struct.setAfiIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
oprot.writeString(struct.routermac);
oprot.writeFieldEnd();
}
+ if (struct.afi != null) {
+ oprot.writeFieldBegin(AFI_FIELD_DESC);
+ oprot.writeI32(struct.afi.getValue());
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
if (struct.isSetRoutermac()) {
optionals.set(10);
}
- oprot.writeBitSet(optionals, 11);
+ if (struct.isSetAfi()) {
+ optionals.set(11);
+ }
+ oprot.writeBitSet(optionals, 12);
if (struct.isSetP_type()) {
oprot.writeI32(struct.p_type.getValue());
}
if (struct.isSetRoutermac()) {
oprot.writeString(struct.routermac);
}
+ if (struct.isSetAfi()) {
+ oprot.writeI32(struct.afi.getValue());
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(11);
+ BitSet incoming = iprot.readBitSet(12);
if (incoming.get(0)) {
struct.p_type = protocol_type.findByValue(iprot.readI32());
struct.setP_typeIsSet(true);
struct.routermac = iprot.readString();
struct.setRoutermacIsSet(true);
}
+ if (incoming.get(11)) {
+ struct.afi = af_afi.findByValue(iprot.readI32());
+ struct.setAfiIsSet(true);
+ }
}
}
private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)9);
private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)10);
+ private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)11);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
public String macaddress; // required
public int l3label; // required
public int l2label; // required
+ /**
+ *
+ * @see af_afi
+ */
+ public af_afi afi; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
ESI((short)7, "esi"),
MACADDRESS((short)8, "macaddress"),
L3LABEL((short)9, "l3label"),
- L2LABEL((short)10, "l2label");
+ L2LABEL((short)10, "l2label"),
+ /**
+ *
+ * @see af_afi
+ */
+ AFI((short)11, "afi");
- private static final Map<String, _Fields> byName = new HashMap<>();
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
return L3LABEL;
case 10: // L2LABEL
return L2LABEL;
+ case 11: // AFI
+ return AFI;
default:
return null;
}
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
}
String esi,
String macaddress,
int l3label,
- int l2label)
+ int l2label,
+ af_afi afi)
{
this();
this.p_type = p_type;
setL3labelIsSet(true);
this.l2label = l2label;
setL2labelIsSet(true);
+ this.afi = afi;
}
/**
}
this.l3label = other.l3label;
this.l2label = other.l2label;
+ if (other.isSetAfi()) {
+ this.afi = other.afi;
+ }
}
public onUpdateWithdrawRoute_args deepCopy() {
this.l3label = 0;
setL2labelIsSet(false);
this.l2label = 0;
+ this.afi = null;
}
/**
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
}
+ /**
+ *
+ * @see af_afi
+ */
+ public af_afi getAfi() {
+ return this.afi;
+ }
+
+ /**
+ *
+ * @see af_afi
+ */
+ public onUpdateWithdrawRoute_args setAfi(af_afi afi) {
+ this.afi = afi;
+ return this;
+ }
+
+ public void unsetAfi() {
+ this.afi = null;
+ }
+
+ /** Returns true if field afi is set (has been assigned a value) and false otherwise */
+ public boolean isSetAfi() {
+ return this.afi != null;
+ }
+
+ public void setAfiIsSet(boolean value) {
+ if (!value) {
+ this.afi = null;
+ }
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case P_TYPE:
}
break;
+ case AFI:
+ if (value == null) {
+ unsetAfi();
+ } else {
+ setAfi((af_afi)value);
+ }
+ break;
+
}
}
case L2LABEL:
return Integer.valueOf(getL2label());
+ case AFI:
+ return getAfi();
+
}
throw new IllegalStateException();
}
return isSetL3label();
case L2LABEL:
return isSetL2label();
+ case AFI:
+ return isSetAfi();
}
throw new IllegalStateException();
}
return false;
}
+ boolean this_present_afi = true && this.isSetAfi();
+ boolean that_present_afi = true && that.isSetAfi();
+ if (this_present_afi || that_present_afi) {
+ if (!(this_present_afi && that_present_afi))
+ return false;
+ if (!this.afi.equals(that.afi))
+ return false;
+ }
+
return true;
}
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+ boolean present_p_type = true && (isSetP_type());
+ list.add(present_p_type);
+ if (present_p_type)
+ list.add(p_type.getValue());
+ boolean present_rd = true && (isSetRd());
+ list.add(present_rd);
+ if (present_rd)
+ list.add(rd);
+ boolean present_prefix = true && (isSetPrefix());
+ list.add(present_prefix);
+ if (present_prefix)
+ list.add(prefix);
+ boolean present_prefixlen = true;
+ list.add(present_prefixlen);
+ if (present_prefixlen)
+ list.add(prefixlen);
+ boolean present_nexthop = true && (isSetNexthop());
+ list.add(present_nexthop);
+ if (present_nexthop)
+ list.add(nexthop);
+ boolean present_ethtag = true;
+ list.add(present_ethtag);
+ if (present_ethtag)
+ list.add(ethtag);
+ boolean present_esi = true && (isSetEsi());
+ list.add(present_esi);
+ if (present_esi)
+ list.add(esi);
+ boolean present_macaddress = true && (isSetMacaddress());
+ list.add(present_macaddress);
+ if (present_macaddress)
+ list.add(macaddress);
+ boolean present_l3label = true;
+ list.add(present_l3label);
+ if (present_l3label)
+ list.add(l3label);
+ boolean present_l2label = true;
+ list.add(present_l2label);
+ if (present_l2label)
+ list.add(l2label);
+ boolean present_afi = true && (isSetAfi());
+ list.add(present_afi);
+ if (present_afi)
+ list.add(afi.getValue());
+ return list.hashCode();
}
@Override
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAfi()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
sb.append("l2label:");
sb.append(this.l2label);
first = false;
+ if (!first) sb.append(", ");
+ sb.append("afi:");
+ if (this.afi == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.afi);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 11: // AFI
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.afi = af_afi.findByValue(iprot.readI32());
+ struct.setAfiIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
oprot.writeI32(struct.l2label);
oprot.writeFieldEnd();
+ if (struct.afi != null) {
+ oprot.writeFieldBegin(AFI_FIELD_DESC);
+ oprot.writeI32(struct.afi.getValue());
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
if (struct.isSetL2label()) {
optionals.set(9);
}
- oprot.writeBitSet(optionals, 10);
+ if (struct.isSetAfi()) {
+ optionals.set(10);
+ }
+ oprot.writeBitSet(optionals, 11);
if (struct.isSetP_type()) {
oprot.writeI32(struct.p_type.getValue());
}
if (struct.isSetL2label()) {
oprot.writeI32(struct.l2label);
}
+ if (struct.isSetAfi()) {
+ oprot.writeI32(struct.afi.getValue());
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(10);
+ BitSet incoming = iprot.readBitSet(11);
if (incoming.get(0)) {
struct.p_type = protocol_type.findByValue(iprot.readI32());
struct.setP_typeIsSet(true);
struct.l2label = iprot.readI32();
struct.setL2labelIsSet(true);
}
+ if (incoming.get(10)) {
+ struct.afi = af_afi.findByValue(iprot.readI32());
+ struct.setAfiIsSet(true);
+ }
}
}
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<>();
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
}
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
}
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ return list.hashCode();
}
@Override
private static final org.apache.thrift.protocol.TField ERR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errCode", org.apache.thrift.protocol.TType.BYTE, (short)2);
private static final org.apache.thrift.protocol.TField ERR_SUBCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errSubcode", org.apache.thrift.protocol.TType.BYTE, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
ERR_CODE((short)2, "errCode"),
ERR_SUBCODE((short)3, "errSubcode");
- private static final Map<String, _Fields> byName = new HashMap<>();
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_prefix = true && (isSetPrefix());
+ list.add(present_prefix);
+ if (present_prefix)
+ list.add(prefix);
+ boolean present_errCode = true;
+ list.add(present_errCode);
+ if (present_errCode)
+ list.add(errCode);
+ boolean present_errSubcode = true;
+ list.add(present_errSubcode);
+ if (present_errSubcode)
+ list.add(errSubcode);
+ return list.hashCode();
}
@Override
}
}
-