def _validate(self, configuration):
        for port in configuration.ports:
            if port_is_in_trunk_mode(port) and \
                    (port.trunk_vlans is None or len(port.trunk_vlans) == 0):
                raise FailingCommitResults([TrunkShouldHaveVlanMembers(interface=port.name),
                                            ConfigurationCheckOutFailed()])
        return super(JuniperQfxCopperNetconfDatastore, self)._validate(configuration)
dataset/ETHPy150Open internap/fake-switches/fake_switches/juniper_qfx_copper/juniper_qfx_copper_netconf_datastore.py/JuniperQfxCopperNetconfDatastore._validate/original