# Functions
GenerateVyosOps takes a resource data model and converts it to vyos api operation compatible list of lists of strings
Input:
vyosPath: []string{"firewall", "ipv4", "forward", "filter"} vyosData: map[string]interface {}{"default-action":"reject", "default-log":map[string]interface {}{}}
Output:
[][]string{[]string{"firewall", "ipv4", "forward", "filter", "default-log"}, []string{"firewall", "ipv4", "forward", "filter", "default-action", "reject"}}.
GetChild takes a resource model and checks if it has children configured This is useful to halt deleting of resources.
MarshalVyos takes a Terraform resource model pointer and returns a vyos config representation.
StringNot returns a validator negating the sub validators results.
UnknownToNull Takes in a Resource Data Model pointer and recursively sets all unknown fields to null.
UnmarshalVyos takes unmarshalled json data and a Terraform resource model pointer and populates it with the data.
# Structs
StringNotValidator implements the negating validator.
# Interfaces
VyosResource is used to support CRUD operations for terraform resources via helpers.
VyosResourceDataModel defines common functions all models need in order to operate.
VyosTopResourceDataModel defines common functions all models need in order to operate.