sriovdp_config: Improvements and fixes 37/2237/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 13 Feb 2020 12:00:37 +0000 (13:00 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 13 Feb 2020 13:52:42 +0000 (14:52 +0100)
commitd8894a8c996772f02c27f6b03ac438f42c96cbed
tree7d46623637a150a45555523bcbdb9d0a74530bae
parent7385fe7b00e999a7c89edf0523708563c7947b17
sriovdp_config: Improvements and fixes

- do not fail sriovdp_config role if no PCI devices are matched by
  grep (e.g. for the old pattern, no PCI devices in PCI domain 0);
- allow network interface names that don't start with 'en', e.g. em1,
  p1p127;
- allow PCI devices on other domains than hardcoded '0000';
- Use full PCI address in /etc/pcidp/config.json for the newly allowed
  PCI domains (this is also supported, see [1], but for covenience they
  were left on default '0000');

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1770642

Change-Id: I117966a5530d4b1003154bf7cf8182986db112e8
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
infra-ansible.spec
roles/sriovdp_config/tasks/main.yaml