Eliminating Glacier (wise), you have a 1425 round trip from La Grande, OR (not sure where you live). This is the route I'd take:
La Grande, OR I-84; I-15 spending a night near Burly, Idaho which is 300 miles.
From Burley take I-15 to Hwy 26 at Idaho Falls to 89.
Take 89 north into Teton Nat'l Park and stay at Gros Ventre dry campground (doesn't accept reservations but it has 300 sites and rarely fills) Colter Bay dry campground also has 300 non-reservable sites. Colter Bay RV has full hookups.
From the Tetons continue into Yellowstone.
From Yellowstone go to Bozeman.
To return home: Take I-90 through Missoula to Spokane to 395 south to I-82/84 to La Grande, OR. - 1-2 nights
I would plan at least 2 nights in the Tetons; preferably 3. There are mild hikes, a gentle float trip down the Snake River and you might even see a moose in the river with you; a boat trip across Jenny Lake and walk to the waterfalls; The Jackson Rodeo; major groceries are in Jackson. Lots to do.
Yellowstone: 4 nights is plenty.
Total driving: 1425 miles roundtrip. This would make a very nice 2-week trip. Have fun!