Did the switch turn on all the lights or perhaps just the first/entry light?
If just the first light, then you must leave the light on at the fixture, then use the panel switch to turn it off/on. This is usually just for the first light, so when you enter/exit the RV, you can use the switch at the panel in case it is dark, and you don't have to fumble around when you can't see, trying to turn on the lights.
If you turn off the light at the fixture, then the switch in the panel will have no effect.
This is the way my particular RV is wired, but yours may be different.
2011 Flagstaff 831 RLBSS
I've just ordered a chicken and an egg from Amazon.... I will keep you posted.