replaced RIP with SDN everywhere for the code ive re-stolen