Skip to main content

Netplan

The behaviors that netplan calls, and each call that its examples make. osapi behavior chain get --name netplan shows the same.

Chain​

Behaviornetplan
Chainnetplan → managedfile
Callsmanagedfile
Used bydns, interface, route

A new file (update)​

CALLSENDSGETS
netplan updatecontent=<6 lines> path=/etc/netplan/osapi-dns.yamlchanged=true path=/etc/netplan/osapi-dns.yaml
└─ managedfile updatecontent=<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)​

CALLSENDSGETS
netplan deletepath=/etc/netplan/osapi-dns.yamlchanged=true path=/etc/netplan/osapi-dns.yaml
└─ managedfile deletepath=/etc/netplan/osapi-dns.yamlchanged=true path=/etc/netplan/osapi-dns.yaml

A file that is not there (delete)​

CALLSENDSGETS
netplan deletepath=/etc/netplan/osapi-dns.yamlchanged=false path=/etc/netplan/osapi-dns.yaml
└─ managedfile deletepath=/etc/netplan/osapi-dns.yamlchanged=false path=/etc/netplan/osapi-dns.yaml