Manage Linux Routing Using Chef

Hi All,

I am looking for some help to perform the below logic for server route management

  1. The logic should check if a perticular route is present in routing table or not
  2. If the route is not present it will add the same
  3. Delete any unwanted route (the routing should be compared with the standard routing table)

Can Someone please help with the code ?

Regards
Anirban