UCSM should strip domain names from config files so it works with CVD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-cisco |
New
|
Undecided
|
Unassigned |
Bug Description
While getting CVD2 (OSP8) working, I had pulled in the RH patch for Nexus and UCSM. However, the patch
https:/
for UCSM was not complete enough for CVD2 to succeed. I had added a hack file to the build in order
to get things working. This hack file stripped the domain name from the configuration files.
At this time, the hack file exists in osp7_install branch in the name
osp7_installer/
I refer to it as a hack file since Sandhya wanted to add more intelligence to the final solution.
The hack file currently contains the following:
diff --git a/networking_
index 748a145..44b1137 100644
--- a/networking_
+++ b/networking_
@@ -89,7 +89,8 @@ def parse_ucsm_
if not sep or not service_profile:
- key = (cfg.CONF.
+ short_hostname = hostname.
+ key = (cfg.CONF.
if '/' not in service_profile:
# Assuming the service profile is at the root level
# and the path is not specified. This option
@@ -104,8 +105,8 @@ def parse_ucsm_
- hostname, sp_dict.get(key))
- host_dict[hostname] = cfg.CONF.
+ short_hostname, sp_dict.get(key))
+ host_dict[
return sp_dict, host_dict