Home | History | Annotate | Download | only in network_DhcpStaticIP

Lines Matching refs:service

22     # Time to wait after DHCP negotiation completes until service is marked
31 def configure_static_ip(self, service, params):
36 @param service object the Service DBus interface to configure.
37 @param params list of static parameters to set on the service.
49 service.SetProperty('StaticIP.Address', static_ip_address)
50 service.SetProperty('StaticIP.Prefixlen', prefix_len)
54 service.SetProperty('StaticIP.NameServers',
58 service.Disconnect()
59 service.Connect()
62 def clear_static_ip(self, service, params):
66 @param service object the Service DBus interface to clear properties.
67 @param params list of static parameters to clear from the service.
71 service.ClearProperty('StaticIP.Address')
72 service.ClearProperty('StaticIP.Prefixlen')
74 service.ClearProperty('StaticIP.NameServers')
75 service.Disconnect()
76 service.Connect()
79 def check_saved_ip(self, service, options):
80 """Check the properties of the Ethernet service to make sure that
84 @param service object the Service DBus interface to clear properties.
90 properties = service.GetProperties()
122 def test_dhcp_negotiation(self, rules, service):
124 and ensure that |service| becomes connected as a result.
128 @param service Service DBus object which should become connected as
138 # Wait for the service to enter a "good" state.
140 service,
146 raise error.TestFail('Ethernet service did not become connected.')
149 def connect_dynamic_ip(self, options, service):
157 @param service DBus object of the service that should become
162 service)
166 def connect_static_ip(self, options, service, params):
175 @param service DBus object of the service that should become
187 self.test_dhcp_negotiation(rules, service)
194 self.check_saved_ip(service, options)
223 service = self.find_ethernet_service(
230 self.connect_dynamic_ip(dhcp_options, service)
233 self.configure_static_ip(service, params)
234 self.connect_static_ip(dhcp_options, service, params)
235 self.clear_static_ip(service, params)
237 self.connect_dynamic_ip(dhcp_options, service)