#NEWLINE# def set_mac_address( self , mac_address = None , default = False , disable = False ) : #NEWLINE# #INDENT# ' Sets the virtual-router mac address\n\n        This method will set the switch virtual-router mac address. If a\n        virtual-router mac address already exists it will be overwritten.\n\n        Args:\n            mac_address (string): The mac address that will be assigned as\n                the virtual-router mac address. This should be in the format,\n                aa:bb:cc:dd:ee:ff.\n            default (bool): Sets the virtual-router mac address to the system\n                default (which is to remove the configuration line).\n            disabel (bool): Negates the virtual-router mac address using\n                the system no configuration command\n\n        Returns:\n            True if the set operation succeeds otherwise False.\n        ' #NEWLINE# if ( ( not commands ) and ( not disable ) ) : #NEWLINE# #INDENT# if ( mac_address is not None ) : #NEWLINE# #INDENT# if ( not re . match ( '(?:[a-f0-9]{2}:){5}[a-f0-9]{2}' , mac_address ) ) : #NEWLINE# #INDENT# raise ValueError ( 'mac_address must be formatted like:aa:bb:cc:dd:ee:ff' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'mac_address must be a properly formatted address string' ) #NEWLINE# #UNINDENT# #UNINDENT# commands = self . command_builder ( 'ip virtual-router mac-address' , value = mac_address , default = default , disable = disable ) #NEWLINE# return self . configure ( commands )