]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location-query.in
location-query: Show flags in lookup output
[location/libloc.git] / src / python / location-query.in
index c138644cd1c35a8acd206233b53741716bea7056..0d1510ad4d3e2036f320d36589dfdab3f8b48f3a 100644 (file)
@@ -288,6 +288,24 @@ class CLI(object):
                                        autonomous_system or "AS%s" % network.asn),
                                )
 
+                       # Anonymous Proxy
+                       if network.has_flag(location.NETWORK_FLAG_ANONYMOUS_PROXY):
+                               print(format % (
+                                       _("Anonymous Proxy"), _("yes"),
+                               ))
+
+                       # Satellite Provider
+                       if network.has_flag(location.NETWORK_FLAG_SATELLITE_PROVIDER):
+                               print(format % (
+                                       _("Satellite Provider"), _("yes"),
+                               ))
+
+                       # Anycast
+                       if network.has_flag(location.NETWORK_FLAG_ANYCAST):
+                               print(format % (
+                                       _("Anycast"), _("yes"),
+                               ))
+
                return ret
 
        def handle_dump(self, db, ns):