Added support for priority in all classifiers
[packetcable.git] / packetcable-policy-server / src / main / java / org / opendaylight / controller / packetcable / provider / validation / impl / validators / qos / GateSpecValidator.java
1 /*
2  * Copyright (c) 2015 CableLabs and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.packetcable.provider.validation.impl.validators.qos;
10
11 import org.opendaylight.controller.packetcable.provider.validation.impl.validators.AbstractValidator;
12 import org.opendaylight.yang.gen.v1.urn.packetcable.rev161107.pcmm.qos.gate.spec.GateSpec;
13
14 /**
15  * @author rvail
16  */
17 public class GateSpecValidator extends AbstractValidator<GateSpec> {
18
19     private static final String DIRECTION = "gate-spec.direction";
20
21     @Override
22     protected void doValidate(final GateSpec gateSpec, final Extent extent) {
23         if (gateSpec == null) {
24             getErrorMessages().add("gate-spec must exist");
25         }
26
27         // everything is optional
28
29 //        mustExist(gateSpec.getDirection(), DIRECTION);
30 //
31 //        // dscp-tos-overwrite & dscp-tos-mask are optional
32     }
33
34 }