Mon Jun 6 09:18:43 2022 daemon.info pppd[14804]: IPV6CP terminated by peer
Mon Jun 6 09:18:43 2022 daemon.notice netifd: Interface 'MYINTERFACE' has lost the connection
MYINTERFACE has not lost the connection, it still has functioning IPv4 stack, which can be used just fine.
Well, the problem is netifd is marking "interface has lost connection" incorrectly. Not exactly an IPv6 issue, peer could terminate IPCP instead of IPv6CP.
I apologize, maybe I'm misreading or we're having a language issue. I'll leave and let someone else respond.
EDIT: Now that I reread, maybe it seems you don't care about IPv6 so you're disregarding it because the IPv4 stack is up...so you want a patch to ignore the IPv6 stack going down.
Right now ip-down-script and ipv6-down-script will both point to the same /lib/netifd/ppp-down script which simply terminates the link once invoked, regardless of by which address control protocol.
I think for a proper solution, both IPCP (through ip-up-script) and IPV6CP (through ipv6-up-script) need to be tracked separately and the link down (proto_init_update / proto_send_update) in ppp-down should only be done if both control protocols are down.
Thank you very much for the explanation @jow . I'll go with changing ipv6-down-script path to something else that confirms the no connection on IPv4 either and then call /lib/netifd/ppp-down for now.