Skip to content
Snippets Groups Projects
Commit 7dd1f8ba authored by S.H.'s avatar S.H.
Browse files

Fix setting /interfaces/interface/config/enabled through supporting boolean

parent 0cc123db
No related branches found
No related tags found
No related merge requests found
......@@ -489,13 +489,14 @@ func (r *RtdtManager) updateMNECallbackTwin(event *event.Event) {
}
func printEvent(event *event.Event) {
fmt.Println("\n")
fmt.Println("--------------------------------")
fmt.Println("---------- MNE EVENT -----------")
fmt.Println("EventID: ", event.ID.ID())
fmt.Println("Event Type: ", event.Type)
fmt.Println("PathsAndValuesMap: ", event.PathsAndValuesMap)
fmt.Println("EntityID", event.EntityID)
fmt.Println("--------------------------------")
fmt.Println("\n")
}
func (r *RtdtManager) updateMNECallbackRealnet(event *event.Event) {
......
......@@ -119,7 +119,7 @@ func NewVEnv(name, clabFilename, user, pass string, wg *sync.WaitGroup, sdnConfi
// load topo into DB via API
return &VEnv{
Name: name,
Name: name,
auth: gosdnauth,
pnd: gosdn_pnd,
conn: gosdnconn,
......@@ -270,7 +270,7 @@ func getTypedValue(value, ytype string) (*gnmi.TypedValue, error) {
}
fmt.Printf("getTypedValue: value=%s, ytype=%s\n", value, ytype)
switch ytype {
case "bool":
case "bool", "boolean":
{
boolVal, err := strconv.ParseBool(value)
if err == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment