06-27-2024 11:07 AM
Hi,
I am trying to write the klish xml to handle enum in a yang like below,
leaf lb_type {
type enumeration {
enum L4 ;
enum L7 ;
}
default "L4";
description " Loadbalancer type for the loadbalancer service ";
}
my CLI configuration are working without the default "L4", but if I give default "L4" then some response from RESTCONF is showing some error like below,
return self.status_code >= 200 and self.status_code <= 299
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
I was unable to send curl also when default "L4" is present in yang. Else everything is working fine. May I know what is issue here and could you please provide me the solution.
06-27-2024 11:55 AM
Just guessing here, if you use the mandatory
attribute in the YANG model does that ensure that the lb_type
leaf is always configured?
06-28-2024 12:42 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide