I have partially implemented some stuff to manage my css326 with saltstack. Maybe, this can help to do better things:
https://github.com/y-martin/pkg-python3-mikrotik-swos
https://github.com/y-martin/salt_mikrotik_swos
I don't have implemented everything (for example I don't use ACL).