station_profile.modify: parse radio name using name_to_eid, and use the parsed name to set radio data

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-16 13:19:30 -08:00
parent d796415dd4
commit 2f793741d3

View File

@@ -557,7 +557,8 @@ class StationProfile:
station_shelf = station_eid[0]
station_resource = station_eid[1]
station_port = station_eid[2]
self.add_sta_data["radio"] = radio
radio_eid = self.local_realm.name_to_eid(radio)
self.add_sta_data["radio"] = radio_eid[2]
self.add_sta_data["shelf"] = station_shelf
self.add_sta_data["resource"] = station_resource
self.add_sta_data["sta_name"] = station_port