1. 19 Dec, 2019 3 commits
    • George Kiagiadakis's avatar
      config-policy: push endpoints with keep=true to the end of the list when sorting · 40e4ce89
      George Kiagiadakis authored
      This ensures that endpoints with keep=false will still have
      a chance to link when ones with keep=true exist. This also effectively
      means that role priority does not matter when keep=true: we keep these
      links active no matter what, while policy still applies normally for
      all others.
      For example, a final sorted list with these endpoints will end up
      looking like this:
      * ep1, role priority=25, keep=false
      * ep2, role priority=20, keep=false
      * ep3, role priority=25, keep=true
      * ep4, role priority=75, keep=true
      ... which will effectively cause ep1, ep3 and ep4 to be linked.
    • George Kiagiadakis's avatar
      config-policy: do not unlink other endpoints when linking one with keep=true · 729aee5c
      George Kiagiadakis authored
      keep=true should work in both ways:
      * keep the endpoint with this property linked at all times
      * keep other already linked endpoints when linking this one
    • George Kiagiadakis's avatar
      config-policy: remove _can_link_stream() function · 3c5b5ea0
      George Kiagiadakis authored
      This is no longer needed since we sort endpoints by role priority
      before trying to link them and we link only the highest priority one.
      After this sorting, the highest priority endpoint is guaranteed
      to be able to link, so _can_link_stream() always returns TRUE.
  2. 17 Dec, 2019 1 commit
  3. 16 Dec, 2019 3 commits
  4. 13 Dec, 2019 1 commit
  5. 11 Dec, 2019 2 commits
  6. 10 Dec, 2019 3 commits
  7. 05 Dec, 2019 1 commit
    • Julian Bouzas's avatar
      config-policy: prioritize role from configuration file · 34ebbe47
      Julian Bouzas authored
      The role defined in the endpoint-link configuration files must have higher
      priority than the one set in the endpoint. If none of them are set, the config
      policy fallbacks to the lowest one defined in the streams configuration file
  8. 04 Dec, 2019 1 commit