Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    route-map reducing or increasing local-preference

    Scheduled Pinned Locked Moved TNSR
    2 Posts 1 Posters 447 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paulwollner66
      last edited by

      Hello there,

      In my evaluation of TNSR, I have been building policies from our existing routers. It seems that TNSR does not cater for any arithmatic when setting local-preference. I would like to achieve the following:

      route dynamic route-map lp-pop-change
      sequence 10
      policy permit
      set local-preference -20
      exit
      exit

      I took a look at the FRR manual and it does cater for (+ or -) values when setting local-preference. Is this something that would ever be on the roadmap? I assume it would be just changing the yang files?

      P 1 Reply Last reply Reply Quote 0
      • P
        paulwollner66 @paulwollner66
        last edited by

        I have created a patch that achieves incrementing and decrementing the local-preference. It is the first time I have worked with yang, but I think I have checked all the boxes.

        Hopefully this is useful for others.

        local-preference.patch

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.