It was called an armistice.
All sides agreed to the end of military actions, with the South Vietnam government intact.
2 years later, the North overran the South (the U.S. did not provide any support to the South for this second war).