search for: valid_fqdn_or_ipv4

Displaying 2 results from an estimated 2 matches for "valid_fqdn_or_ipv4".

2011 Jul 18
0
[PATCH node] fix ipv6 support in dns/ntp callbacks
...+738,16 @@ class NodeConfigScreen(): dns_grid.setField(Label("DNS Server 2: "), 0, 1, anchorLeft = 1) dns_grid.setField(self.dns_host1, 1, 0, anchorLeft = 1) dns_grid.setField(self.dns_host2, 1, 1, anchorLeft = 1) - self.dns_host1.setCallback(self.valid_fqdn_or_ipv4) - self.dns_host2.setCallback(self.valid_fqdn_or_ipv4) grid.setField(Label(" "), 0, 4) grid.setField(dns_grid, 0, 6, anchorLeft =1) grid.setField(Label(" "), 0, 7) ntp_grid = Grid(2,2) self.ntp_host1 = Entry(25) -...
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
...+ self.screen.setColor("ACTBUTTON", "blue", "white") + ButtonChoiceWindow(self.screen, "Configuration Check", "Invalid Hostname", buttons = ['Ok']) + self.reset_screen_colors() def valid_fqdn_or_ipv4(self): warn = 0 @@ -1143,10 +1144,13 @@ class NodeConfigScreen(): self.menuo = self.menu_list.current() def process_network_config(self): - if self.net_hostname.value() != self.current_hostname and is_valid_hostname(self.net_hostname.value()): + if s...