refactor methods with negatives standardizes on the way to revert a given configuration
refactor methods with negatives
standardizes on the way to revert a given configuration

Change-Id: I397c99c945503d597293291a64d4c158285b7957

BRCDcomm/pynos,brocade/pynos,SivagnanamCiena/pynos