package org.batfish.representation.juniper;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.batfish.datamodel.Prefix;

public class GeneratedRoute implements Serializable {

   /**
   *
   */
   private static final long serialVersionUID = 1L;

   private Integer _metric;

   private final List<String> _policies;

   private Integer _preference;

   private final Prefix _prefix;

   public GeneratedRoute(Prefix prefix) {
      _prefix = prefix;
      _policies = new ArrayList<String>();
   }

   public int getMetric() {
      return _metric;
   }

   public List<String> getPolicies() {
      return _policies;
   }

   public Integer getPreference() {
      return _preference;
   }

   public Prefix getPrefix() {
      return _prefix;
   }

   public void setMetric(int metric) {
      _metric = metric;
   }

   public void setPreference(int preference) {
      _preference = preference;
   }

}

@@ -546,19 +546,23 @@
  public 
-i
+I
 nt
+eger
  getMetr

allow juniper generated route getMetric to return null