Spine surgery for slip disc can be done at many levels, and in many different ways. Also, the deficit / disability that has set in due to the slip disc matters a lot while deciding the activities permissible or restricted after a spine surgery. By and large, two years after a successful surgery, you should be able to do light exercises, jogging, running etc, given the fact that you are quite young, and do not have other disorders that restrict these activities.
The pain in right leg could be related to spinal disease or hip joint, an orthopedic surgeon would better advise you the relevant investigations.
The best option would be to ask the doctor who operated you, as he knows in detail about the damage that the slipped disc has caused and the restrictions due to surgical corrections.