'Parses device_mappings and exclude_devices.
Parse and validate the consistency in both mappings'

def parse(self):

    self.device_mappings = helpers.parse_mappings(cfg.CONF.SRIOV_NIC.physical_device_mappings, unique_keys=False)
    self.exclude_devices = config.parse_exclude_devices(cfg.CONF.SRIOV_NIC.exclude_devices)
    self._validate()
