diff --git a/junos/resource_interface.go b/junos/resource_interface.go index 80a1abc9..dddc4bb6 100644 --- a/junos/resource_interface.go +++ b/junos/resource_interface.go @@ -516,6 +516,12 @@ func resourceInterfaceRead(d *schema.ResourceData, m interface{}) error { } if !intExists { d.SetId("") + mutex.Unlock() + return nil + } + if err = checkInterfaceNC(d.Get("name").(string), m, jnprSess); err == nil { + d.SetId("") + mutex.Unlock() return nil } interfaceOpt, err := readInterface(d.Get("name").(string), m, jnprSess)