Virtual Switch that follows the state of Physical Switch

Put this together in like 5 minutes soooooo it could be horribly wrong… but I think this is what you are looking for.