class Layer2VniConfig extends VniConfig implements Serializable, Comparable<Layer2VniConfig> {

  @Override
  public boolean equals(@Nullable Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof Layer2VniConfig)) {
      return false;
    }
    Layer2VniConfig vniConfig = (Layer2VniConfig) o;
    return _vni == vniConfig._vni
        && _vrf.equals(vniConfig._vrf)
        && _rd.equals(vniConfig._rd)
        && _routeTarget.equals(vniConfig._routeTarget)
        && _importRouteTarget.equals(vniConfig._importRouteTarget);
  }

  private  Layer2VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget);

}