Update README

This commit is contained in:
Liam Young 2016-08-31 11:00:53 +00:00
parent f3ae147a7d
commit bf401a2a27
1 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,24 @@ another charm.
The interface provides the `service-control.connected` state.
Requesting a restart of all remote services:
```python
@reactive.when('service-control.connected')
def configure(service_control):
...
service_control.request_restart()
```
Requesting a restart of a specific type of remote services:
```python
@reactive.when('service-control.connected')
def configure(service_control):
...
service_control.request_restart(service_type='neutron')
```
# metadata
To consume this interface in your charm or layer, add the following to