Bugzilla – Bug 1920
Remove spaces from DSR attributes so can be re-loaded by config-store
Last modified: 2014-06-06 17:33:53 EDT
I propose the following simple patch for src/dsr/model/dsr-option-header.cc 664,666c671,676 < MakeEnumChecker (NODE_UNREACHABLE, "Node unreachable", < FLOW_STATE_NOT_SUPPORTED, "Flow state not supported", < OPTION_NOT_SUPPORTED, "Option not supported")) --- > // note: config-store (raw text) fails to parse upon > // loading of quoted string containing spaces, > // so have replaced spaces with underscore. > MakeEnumChecker (NODE_UNREACHABLE, "Node_unreachable", > FLOW_STATE_NOT_SUPPORTED, "Flow_state_not_supported", > OPTION_NOT_SUPPORTED, "Option_ not_supported")) Issue: I am writing a vanet simulation script, which includes DSR. I am using config-store to save settings (raw text mode). When I then try to read in the config file I just saved, I find that these settings fail to parse correctly, because they were written to the raw-text config-store file as quoted strings, which contained spaces. The config-file read/parse then fails (NS_ASSERT) to re-load these saved settings. My work-around is to simply replace the spaces with underscores in this attribute.
The attribute is part of an header, and it is never (ever) used. The right bugfix is to remove the attribute altogether. T.
changeset 10803 0279c409a48b