@Override protected Statement toSetStatement(CiscoConfiguration cc, Configuration c, Warnings w) { return new SetMetric(_metric); } }
@Override protected Statement toSetStatement(CiscoConfiguration cc, Configuration c, Warnings w) { return new SetMetric(_med); } }
@Override public void applyTo( List<Statement> statements, CiscoConfiguration cc, Configuration c, Warnings w) { statements.add(new SetMetric(_metric)); }
@JsonCreator private static SetMetric jsonCreator(@Nullable @JsonProperty(PROP_METRIC) LongExpr metric) { checkArgument(metric != null, "%s must be provided", PROP_METRIC); return new SetMetric(metric); }
@Override public void applyTo( List<Statement> statements, JuniperConfiguration juniperVendorConfiguration, Configuration c, Warnings warnings) { statements.add(new SetMetric(new LiteralLong(_metric))); }
@Override public void applyTo( List<Statement> statements, JuniperConfiguration juniperVendorConfiguration, Configuration c, Warnings warnings) { statements.add(new SetMetric(new IncrementMetric(_metric))); }
long metric = policy.getMetric() != null ? policy.getMetric() : proc.getDefaultMetric(_vendor, protocol); ospfExportStatements.add(new SetMetric(new LiteralLong(metric)));
ripExportDefaultConditions.getConjuncts().add(MATCH_DEFAULT_ROUTE); long metric = proc.getDefaultInformationMetric(); ripExportDefaultStatements.add(new SetMetric(new LiteralLong(metric))); metric = RipRedistributionPolicy.DEFAULT_REDISTRIBUTE_CONNECTED_METRIC; ripExportStatements.add(new SetMetric(new LiteralLong(metric))); ripExportStatements.add(ripExportConnected); metric = RipRedistributionPolicy.DEFAULT_REDISTRIBUTE_STATIC_METRIC; ripExportStatements.add(new SetMetric(new LiteralLong(metric))); ripExportStatements.add(ripExportStatic); metric = RipRedistributionPolicy.DEFAULT_REDISTRIBUTE_BGP_METRIC; ripExportStatements.add(new SetMetric(new LiteralLong(metric))); ripExportStatements.add(ripExportBgp);
ospfExportDefaultConditions.getConjuncts().add(MATCH_DEFAULT_ROUTE); long metric = proc.getDefaultInformationMetric(); ospfExportDefaultStatements.add(new SetMetric(new LiteralLong(metric))); OspfMetricType metricType = proc.getDefaultInformationMetricType(); ospfExportDefaultStatements.add(new SetOspfMetricType(metricType));