summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op-mode-definitions/geoip.xml.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/op-mode-definitions/geoip.xml.in b/op-mode-definitions/geoip.xml.in
index eb9d65ea9..8c51817f2 100644
--- a/op-mode-definitions/geoip.xml.in
+++ b/op-mode-definitions/geoip.xml.in
@@ -2,12 +2,23 @@
<interfaceDefinition>
<node name="update">
<children>
- <leafNode name="geoip">
+ <node name="geoip">
<properties>
<help>Update GeoIP database and firewall sets</help>
</properties>
+ <children>
+ <tagNode name="vrf">
+ <properties>
+ <help>VRF to use for GeoIP update</help>
+ <completionHelp>
+ <path>vrf name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo ip vrf exec $4 ${vyos_libexec_dir}/geoip-update.py</command>
+ </tagNode>
+ </children>
<command>sudo ${vyos_libexec_dir}/geoip-update.py</command>
- </leafNode>
+ </node>
</children>
</node>
</interfaceDefinition>