How to augment an enumeration in YANG

Is there a way to augment an enumeration in another module in YANG ? There is no way, in my case, to put all the values in the first module where the enumeration was defined.

Knowing that the enumeration is inside a grouping as follows:

grouping mygrouping {
    ...
    container mycontainer {
        ...
        list mylist {
            leaf type {
                type enumeration {
                    enum type1
                    enum type2
                    ...
                    enum typen
                }
            }
        }
    }
}

The grouping is used in the new module, but I couldn’t augment the leaf type to add new types in the enumeration.

You may want to consider using an identity instead of an enumeration, as it gives you the ability to add to it. For example you can look at the identity interface-type in RFC 8343, then how that is used in RFC 7224 to create IANA defined interface types,

Yes, you can define a new enum to create an union like this:
typedef union-enum {
type union {
type “x:enum-a”;
type “y:enum-b”;
}
}

consider to extract the original enum to a grouping and use it instead of defining it directly in the leaf