search for: is_valid_ipv6

Displaying 5 results from an estimated 5 matches for "is_valid_ipv6".

Did you mean: is_valid_ipv4
2011 Jul 18
0
[PATCH node] fix ipv6 support in dns/ntp callbacks
...rt-config-setup.py @@ -231,7 +231,8 @@ class NodeConfigScreen(): warn = 0 if not self.dns_host1.value() is None and not self.dns_host1.value() == "": if not is_valid_ipv4(self.dns_host1.value()): - warn = 1 + if not is_valid_ipv6(self.dns_host1.value()): + warn = 1 if warn == 1: self.screen.setColor("BUTTON", "black", "red") self.screen.setColor("ACTBUTTON", "blue", "white") @@ -244,7 +245,8 @@ class No...
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
...fig-setup.py +++ b/scripts/ovirt-config-setup.py @@ -274,8 +274,8 @@ class NodeConfigScreen(): warn = 0 if not self.ntp_host2.value() is None and not self.ntp_host2.value() == "": if not is_valid_ipv4(self.ntp_host2.value()): - if not is_valid_ipv6(self.ntp_host1.value()): - if not is_valid_hostname(self.ntp_host1.value()): + if not is_valid_ipv6(self.ntp_host2.value()): + if not is_valid_hostname(self.ntp_host2.value()): warn = 1 if warn == 1...
2011 Aug 11
0
[PATCH] map nics-> bridges correctly in network pages, when cancelling nic configuration return to network page
...current_gateway = get_gateway(self.nic_lb.current()) - if current_gateway == "": - current_gateway = get_gateway("br" + self.nic_lb.current()) + current_gateway = get_gateway(dev) if is_valid_ipv4(current_gateway) or is_valid_ipv6(current_gateway): self.ipv4_netdevgateway.set(current_gateway) ipv4_grid = Grid (5,3) @@ -1576,10 +1572,7 @@ class NodeConfigScreen(): elif self.net_apply_config == 1: self.__current_page = NETWORK_PAGE...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
...s/ovirt-config-setup.py +++ b/scripts/ovirt-config-setup.py @@ -399,12 +399,15 @@ class NodeConfigScreen(): def ipv6_netmask_callback(self): warn = 0 if not self.ipv6_netdevmask.value() is None and not self.ipv6_netdevmask.value() == "": - if not is_valid_ipv6(self.ipv6_netdevmask.value()): - warn = 1 + try: + if not int(self.ipv6_netdevmask.value()) in range(1,128): + warn = 1 + except: + warn = 1 if warn == 1: self.screen.setColo...
2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
...s/ovirt-config-setup.py +++ b/scripts/ovirt-config-setup.py @@ -399,12 +399,15 @@ class NodeConfigScreen(): def ipv6_netmask_callback(self): warn = 0 if not self.ipv6_netdevmask.value() is None and not self.ipv6_netdevmask.value() == "": - if not is_valid_ipv6(self.ipv6_netdevmask.value()): - warn = 1 + try: + if not int(self.ipv6_netdevmask.value()) in range(1,128): + warn = 1 + except: + warn = 1 if warn == 1: self.screen.setColo...