No, you need to put family ethernet-switching and that's it.
{master:0}[edit]
lab@podgorica1# show ethernet-switching-options
analyzer AN {
input {
ingress {
interface ge-0/0/10.0;
}
}
output {
interface {
ge-0/0/11.0;
}
}
}
{master:0}[edit]
lab@podgorica1# show interfaces ge-0/0/11
unit 0 {
family ethernet-switching;
}
{master:0}[edit]
lab@podgorica1# commit check
configuration check succeeds
{master:0}[edit]
lab@podgorica1#
Otherwise you will see another error:
{master:0}[edit]
lab@podgorica1# commit check
[edit ethernet-switching-options analyzer AN]
'output'
Analyzer output interface ge-0/0/11.0 should be configured with family ethernet-switching
error: configuration check-out failed
{master:0}[edit]
lab@podgorica1#
=====
If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.