ConfD User Community

Confd_cli syntax error debugging

i’m trying to assing bss-id which is a string but when i assign a string it give error as invalid value. how can i check what is wrong with this. can someone please help

US-PF1VTZAD(config)# mo bss-004 bss-000 bss-000 bss-id "1234cftd"
-------------------------------------------------------^
syntax error: "1234cftd" is an invalid value.
US-PF1VTZAD(config)#

typedef bss-id {
        type string {
            pattern '^[a-z0-9A-Z]{0,50}$';
        }
    }

The issue is resolved after changing the pattern as following.

typedef bss-id {
type string {
pattern ‘[a-z0-9A-Z]{0,50}’;
}
}

Thank you !!