// Leave method is invoked when a Sandbox detaches from an endpoint.
Leave method is invoked when a Sandbox detaches from an endpoint.
// Leave method is invoked when a Sandbox detaches from an endpoint .
func (d *driver) Leave(nid, eid string) error {
	if err := validateID(nid, eid); err != nil {
		return err
	}
	n := d.network(nid)
	if n == nil {
		return fmt.Errorf("could not find network with id %s", nid)
	}
	d.notifyCh <- ovNotify{
		action: "leave",
		nid:    nid,
		eid:    eid,
	}
	n.leaveSandbox()
	return nil
}
func ( d * driver ) Leave ( nid , eid string ) error { if err := validateID ( nid , eid ) ; err != nil { return err } n := d . network ( nid ) if n == nil { return fmt . Errorf ( " " , nid ) } d . notifyCh <- ovNotify { action : " " , nid : nid , eid : eid , } n . leaveSandbox ( ) return nil }
Leave method is invoked when a Sandbox detaches from an endpoint.
Leave method is invoked when a Sandbox detaches from an endpoint .