Revision 0b3f2215 lib/query.py

b/lib/query.py
2479 2479

  
2480 2480

  
2481 2481
_NETWORK_SIMPLE_FIELDS = {
2482
  "name": ("Network", QFT_TEXT, 0, "The network"),
2483
  "network": ("Subnet", QFT_TEXT, 0, "The subnet"),
2484
  "gateway": ("Gateway", QFT_OTHER, 0, "The gateway"),
2485
  "network6": ("IPv6Subnet", QFT_OTHER, 0, "The ipv6 subnet"),
2486
  "gateway6": ("IPv6Gateway", QFT_OTHER, 0, "The ipv6 gateway"),
2487
  "mac_prefix": ("MacPrefix", QFT_OTHER, 0, "The mac prefix"),
2488
  "network_type": ("NetworkType", QFT_OTHER, 0, "The network type"),
2482
  "name": ("Network", QFT_TEXT, 0, "Name"),
2483
  "network": ("Subnet", QFT_TEXT, 0, "IPv4 subnet"),
2484
  "gateway": ("Gateway", QFT_OTHER, 0, "IPv4 gateway"),
2485
  "network6": ("IPv6Subnet", QFT_OTHER, 0, "IPv6 subnet"),
2486
  "gateway6": ("IPv6Gateway", QFT_OTHER, 0, "IPv6 gateway"),
2487
  "mac_prefix": ("MacPrefix", QFT_OTHER, 0, "MAC address prefix"),
2488
  "network_type": ("NetworkType", QFT_OTHER, 0, "Network type"),
2489 2489
  "serial_no": ("SerialNo", QFT_NUMBER, 0, _SERIAL_NO_DOC % "Network"),
2490 2490
  "uuid": ("UUID", QFT_TEXT, 0, "Network UUID"),
2491 2491
  }
2492 2492

  
2493 2493

  
2494 2494
_NETWORK_STATS_FIELDS = {
2495
  "free_count": ("FreeCount", QFT_NUMBER, 0, "How many addresses are free"),
2496
  "reserved_count": ("ReservedCount", QFT_NUMBER, 0,
2497
                     "How many addresses are reserved"),
2498
  "map": ("Map", QFT_TEXT, 0, "The actual mapping"),
2499
  "external_reservations": ("ExternalReservations", QFT_TEXT, 0,
2500
                            "The external reservations"),
2495
  "free_count": ("FreeCount", QFT_NUMBER, 0, "Number of available addresses"),
2496
  "reserved_count":
2497
    ("ReservedCount", QFT_NUMBER, 0, "Number of reserved addresses"),
2498
  "map": ("Map", QFT_TEXT, 0, "Actual mapping"),
2499
  "external_reservations":
2500
    ("ExternalReservations", QFT_TEXT, 0, "External reservations"),
2501 2501
  }
2502 2502

  
2503 2503

  

Also available in: Unified diff