Skip to content

Commit

Permalink
Merge pull request #256 from polycube-network/jpi-firewall
Browse files Browse the repository at this point in the history
fix firewall creation fails issue
  • Loading branch information
frisso committed Dec 17, 2019
2 parents e1a3c4a + 0c87774 commit a9d5f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/pcn-firewall/src/Firewall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Firewall::Firewall(const std::string name, const FirewallJsonObject &conf)
logger()->set_pattern("[%Y-%m-%d %H:%M:%S.%e] [Firewall] [%n] [%l] %v");
logger()->info("Creating Firewall instance");

update(conf);

/*Creating default INGRESS and EGRESS chains.*/
ChainJsonObject chain;
Expand Down Expand Up @@ -73,6 +72,8 @@ Firewall::Firewall(const std::string name, const FirewallJsonObject &conf)
egress_programs[ModulesConstants::CONNTRACKTABLEUPDATE] =
new Firewall::ConntrackTableUpdate(ModulesConstants::CONNTRACKTABLEUPDATE,
ChainNameEnum::EGRESS, *this);

update(conf);
}

Firewall::~Firewall() {
Expand Down

0 comments on commit a9d5f85

Please sign in to comment.