Verify mode provided is supported

Before updating the current mode, verify that the mode provided by the
end-user is in the list of modes that are supported.

Tested:
    Only supported modes can be set as the current mode

Change-Id: Ie21839b6bf7245756fedf417e143c28bc9da32f1
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
1 file changed