The behaviors that netplan calls, and each call that its examples make.
osapi behavior chain get --name netplan shows the same.
Chain
A new file (update)
| CALL | SENDS | GETS |
|---|
| netplan update | content=<6 lines> path=/etc/netplan/osapi-dns.yaml | changed=true path=/etc/netplan/osapi-dns.yaml |
| └─ managedfile update | content=<6 lines> mode=0600 path=/etc/netplan/osapi-dns.yaml secret=f… | changed=true path=/etc/netplan/osapi-dns.yaml |
A file osapi wrote (delete)
| CALL | SENDS | GETS |
|---|
| netplan delete | path=/etc/netplan/osapi-dns.yaml | changed=true path=/etc/netplan/osapi-dns.yaml |
| └─ managedfile delete | path=/etc/netplan/osapi-dns.yaml | changed=true path=/etc/netplan/osapi-dns.yaml |
A file that is not there (delete)
| CALL | SENDS | GETS |
|---|
| netplan delete | path=/etc/netplan/osapi-dns.yaml | changed=false path=/etc/netplan/osapi-dns.yaml |
| └─ managedfile delete | path=/etc/netplan/osapi-dns.yaml | changed=false path=/etc/netplan/osapi-dns.yaml |