Advertisement
cooperlees

Untitled

Feb 26th, 2020
1,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.80 KB | None | 0 0
  1. diff --git a/meta-qca/recipes-facebook/coop/files/coop b/meta-qca/recipes-facebook/coop/files/coop
  2. index f798ea5ef..7f7eeb2de 100755
  3. --- a/meta-qca/recipes-facebook/coop/files/coop
  4. +++ b/meta-qca/recipes-facebook/coop/files/coop
  5. @@ -145,23 +145,6 @@ tap_global_address_add() {
  6.              current_vpp_prefix=""
  7.          fi
  8.  
  9. -        # Always check we have a default route
  10. -        vpp_tap_ll_addr=$(ip -6 neighbor show dev ${LINUX_MAIN_TAP} | grep 'fe80:' | head -1 | awk '{print $1}')
  11. -        if [ "${vpp_tap_ll_addr}" != "" ]
  12. -        then
  13. -            # Only delete + add default route if it's not out $LINUX_MAIN_TAP's Link Local
  14. -            if ! ip -6 route show | grep -q "default.*fe80.*${LINUX_MAIN_TAP}"
  15. -            then
  16. -                echo "[$(date)] [INFO] Ensuring default route is via ${vpp_tap_ll_addr} dev ${LINUX_MAIN_TAP}"
  17. -                ip -6 route delete default
  18. -                ip -6 route add default via "${vpp_tap_ll_addr}" dev "${LINUX_MAIN_TAP}"
  19. -            fi
  20. -        else
  21. -            echo "[$(date)] [ERROR] Unable to get Link Local address of neighbor on ${LINUX_MAIN_TAP}"
  22. -            sleep "${DELAY}"
  23. -            continue
  24. -        fi
  25. -
  26.          # Check if we're in CPE mode and enable RA + add prefix if so
  27.          # Don't require a global IPv6 address on Linux to configure this
  28.          cpe_config
  29. diff --git a/meta-qoriq/recipes-facebook/tg-vpp/files/etc/vpp/init.cmd b/meta-qoriq/recipes-facebook/tg-vpp/files/etc/vpp/init.cmd
  30. index 7e9cd0af3..1f15f3b8f 100644
  31. --- a/meta-qoriq/recipes-facebook/tg-vpp/files/etc/vpp/init.cmd
  32. +++ b/meta-qoriq/recipes-facebook/tg-vpp/files/etc/vpp/init.cmd
  33. @@ -1 +1,4 @@
  34.  set logging class dpdk rate-limit 200
  35. +enable ip6 interface vpp-vnet0
  36. +set interface ip address vpp-vnet0 fe80::1/128
  37. +ip6 nd vpp-vnet0 ra-interval 6 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement