Bug 2818 - config-store saves config of deprecated attributes
config-store saves config of deprecated attributes
Status: PATCH WANTED
Product: ns-3
Classification: Unclassified
Component: config-store
ns-3.27
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-09 10:20 EST by Tom Henderson
Modified: 2017-11-09 10:20 EST (History)
0 users

See Also:


Attachments
test program (3.50 KB, text/x-c++src)
2017-11-09 10:20 EST, Tom Henderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2017-11-09 10:20:11 EST
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.