diff options
Diffstat (limited to 'module/ri-wireguard/src/main/resources')
-rw-r--r-- | module/ri-wireguard/src/main/resources/io/trygvis/rules/wireguard/generate.drl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/module/ri-wireguard/src/main/resources/io/trygvis/rules/wireguard/generate.drl b/module/ri-wireguard/src/main/resources/io/trygvis/rules/wireguard/generate.drl new file mode 100644 index 0000000..3ee0583 --- /dev/null +++ b/module/ri-wireguard/src/main/resources/io/trygvis/rules/wireguard/generate.drl @@ -0,0 +1,18 @@ +package io.trygvis.rules.wireguard; + +import java.util.ArrayList +import io.trygvis.rules.dns.DnsEntry; +import io.trygvis.rules.machine.Machine; +import io.trygvis.rules.network.Ipv4Address +import io.trygvis.rules.network.Ipv4Cidr +import io.trygvis.rules.network.IpCalc + +rule "Generate base" + agenda-group "generate" + salience 10 +when + $net : WgNet() + $h : WgHost(net == $net.name) +then + System.out.println("%s : %s".formatted($net.name, $h.name)); +end |