As said above, this is fundamentally possible but you will have a loop. STP will block 2 of the ports during normal operation but they should come active in the event of a failure (at which point there would no longer be a loop).
Personally, I only connect an MX to a single switch. I have experienced two many outages due to spanning tree connecting an MX to two different switches.
What's the point of HA if it increases unplanned downtime.
Get notified when there are additional replies to this discussion.