TWSD-1196 - [Web] Option to enable or disable "CLI: nat protocol dns" on Static NAT

Review Request #1101 — Created Oct. 16, 2025 and submitted

shuinvy
APV10
rel_apv_10_7
TWSD-1196
kevin.poh, mingji, timlai, timsu, weikai

Add column and field "DNS Priority" to Static NAT Entry when DNS NAT Method is Priority

  1. Add two options: hidden_condition, hide_list_condition
    hidden_condition will call function by the model path string be parsed. If it return True, then hidden_condition will be False.
    Then the fields will be hidden when Popup window show for New or Edit.
    hide_list_condition will call function by the model path string be parsed. If it return True, then hide_list_condition will be True.
    Then the column will be hidden in the table(list).
  2. Add method "priority" to NATProtocolSettings class
  3. Add field "priority" to StaticNATEntry class and set it default 0 and range hint is 1 to 512, hide column or fields by function call (parsed string)
  4. Add update priority function
  5. Add vip and priority mapping function
  6. Handle language for DNS Priority column and field.
  7. Remove some spaces in files.

kevin.poh
  1. Ship It!
  2. 
      
timlai
  1. Ship It!
  2. 
      
shuinvy
Review request changed

Status: Closed (submitted)

Loading...