Configure Host Firewall on creation

Hi, I am looking to enable/disable the Automatic Firewall Config on a Host when creating it. How do I mimic the checking/unchecking of the automatically configure host firewall box through the SDK? TIA

By specifying overrideIptables in HostsService::add[1] In Java SDK something like: Host host = hostsService.add() .host( host() .name("myhost") .overrideIptables(true) .description("My host") .address("node40.example.com") .rootPassword("password") .cluster( cluster() .name("mycluster") ) ) .send() .host(); [1] https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/se... On 08/10/2019 11:25, scott.fitzgerald@oracle.com wrote:
Hi,
I am looking to enable/disable the Automatic Firewall Config on a Host when creating it. How do I mimic the checking/unchecking of the automatically configure host firewall box through the SDK?
TIA _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/PE7RIGWSJRW3RA...

It works same for firewalld, depends what's the cluster firewall configuration. We unfortunately named the parameter incorrectly and so it's confusing. On 08/10/2019 12:20, scott.fitzgerald@oracle.com wrote:
Hi Ondra,
Is it possible to do this with firewalld, rather than iptables? Thanks. _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OHGU4S2J7JDNQB...
participants (2)
-
Ondra Machacek
-
scott.fitzgerald@oracle.com