And? It's an oath to "support and defend the Constitution of the United States against all enemies, foreign and domestic." Not an oath to the President, a politician or political party.
The oath military officers take is to “obey LAWFUL orders” No officer is obligated to obey an order that is not lawfully given. If you make that decision though, you better be right!!