History | View | Annotate | Download (1.2 kB)
Make fix-net use common.sh and correct env vars
Helper functions for getting uplink and eui64 reside in common.sh
New Ganeti provides correct GANETI_NEW_PRIMARY GANETI_OLD_PRIMARYenvironment variables. Use them in hooks.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Move fix-net logic from hooks to if-up
In target node we used to run arping and ndsend. Move thesecommands to if-up script.
Introduce helper function to get eui64 and uplink.
Use correct env vars in fix-net hook
After fixing HooksEnv and HooksNodes in Ganeti migration opcodeto include both source and target nodes, use them correctly infix-net hook.
Practically rewrite dnshook
Make it more readable.
Introduce specific methods for getting reverse dns info of an IPv4or eui64.
Parse every nic info and check for DNS_FLAG network flag
Do not explicitly pass zone statement to nsupdate. Let it determine...
Use the script name when logging
Rename clear-proxy-ndp to fix-net