Bugzilla – Full Text Bug Listing |
Summary: | config-store saves config of deprecated attributes | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
Component: | config-store | Assignee: | ns-bugs <ns-bugs> |
Status: | PATCH WANTED --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | ns-3.27 | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | test program |
Created attachment 2950 [details] test program The attached test program dumps the attribute configuration on a wifi program, but the process of doing so emits these warnings: ttribute 'TxAntennas' is deprecated: Not used anymore. Attribute 'RxAntennas' is deprecated: Not used anymore. Attribute 'TxAntennas' is deprecated: Not used anymore. Attribute 'RxAntennas' is deprecated: Not used anymore. and these attributes show up in the saved config: value /$ns3::NodeListPriv/NodeList/0/$ns3::Node/DeviceList/0/$ns3::WifiNetDevice/Phy/$ns3::SpectrumWifiPhy/TxAntennas "1" IMO, the behavior should be that ConfigStore::Load should warn on deprecated attributes, but ConfigStore::Save should suppress them.