1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2025-11-06 18:52:58 +01:00

Fix: Junos: use correct comment_symbol

This commit is contained in:
Sirius Bakke 2015-06-22 19:50:51 +02:00
parent 6ad8299c6b
commit db8b749212
3 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ string fs_separator = "/";
CompilerDriver_junosacl::CompilerDriver_junosacl(FWObjectDatabase *db) :
CompilerDriver(db)
{
comment_symbol = "#";
}
// create a copy of itself, including objdb

View File

@ -26,6 +26,7 @@ namespace fwcompiler {
protected:
std::string system_configuration_script;
std::string policy_script;
std::string comment_symbol;
void printProlog(QTextStream &file, const std::string &prolog_code);

View File

@ -72,7 +72,8 @@ QString CompilerDriver_junosacl::assembleFwScript(Cluster *cluster,
options->setStr("prolog_place", "");
assembleFwScriptInternal(cluster, fw, cluster_member,
oscnf, &script_skeleton, &top_comment, "!", true);
oscnf, &script_skeleton, &top_comment,
QString::fromStdString(comment_symbol), true);
return script_skeleton.expand();
}