Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add claim hook that "warms up" free addresses #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkg20001
Copy link
Member

@mkg20001 mkg20001 commented Feb 13, 2023

See #4 (comment)

Example hook to work with l3roamd

#!/bin/sh

# NOTE: we need to prefix with ::ffff: in del_address because of a bug in l3roamd
# add_address is modified for consistency

case "$1" in
	lease)
		echo add_address "::ffff:$2" "$3" | uc /var/run/l3roamd.sock
		;;

	release)
		echo del_address "::ffff:$2" "$3" | uc /var/run/l3roamd.sock
		;;


	claim)
		ip route add "$2" dev local-node proto 158
		;;

	claimrelease)
		ip route del "$2" dev local-node proto 158
		;;
esac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant