-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: 2.0.0, 2.0.1
-
Fix Version/s: None
-
Component/s: Build System
-
Labels:
-
Story Points:2
-
Epic Link:
When an unknown switch OUI must be added to cord, a file /etc/maas/switches/vendors/vendors.json must be created.
The file has the following format (i.e.):
[
]
If the OUI prefix format is lower case, the modification doesn't have any effect, causing new switches to don't be provisioned.
To reproduce on CORD 2.0:
- sudo mkdir -p /etc/maas/switches/vendors
- sudo vi /etc/maas/switches/vendors/vendors.json
- Append the json reported in the first lines of the ticket
- sudo vi /etc/maas/automation-compose.yml
-> under the SWITCHQ section add "/etc/maas/switches/vendors:/vendors"
-> under the environment section add "SWITCHQ_VENDORS_URL=file:///vendors/vendors.json": - docker-compose -f /etc/maas/automation-compose.yml log switchq
- docker-compose -f /etc/maas/automation-compose.yml log SWITCHQ
- docker-compose -f /etc/maas/automation-compose.yml logs switchq
A user should be able to insert the OUI prefix upper or lower case, having anyway the right effect.