Replace this:
augment "/if:interfaces/if:interface" {
when "if:type = 'ianaift:ethernetCsmacd' or
if:type = 'ianaift:ilan' or
if:type = 'ianaift:macSecControlledIF' or
if:type = 'ianaift:ptm' or
if:type = 'ianaift:bridge'" {
With this:
augment "/if:interfaces/if:interface" {
when "derived-from-or-self(if:type,'ianaift:ethernetCsmacd') or " +
"derived-from-or-self(if:type,'ianaift:ilan') or " +
"derived-from-or-self(if:type,'ianaift:macSecControlledIF') or " +
"derived-from-or-self(if:type,'ianaift:ptm') or " +
"derived-from-or-self(if:type,'ianaift:bridge')" {
description
"Applies to the Controlled Port of SecY or PAC shim or
Ethernet related Interface.";
}