Commit fb0bbc1f authored by marthy's avatar marthy Committed by Mark Canterbury
Browse files

Update ts_103120_TrafficPolicy.schema.json

parent df5e9632
Loading
Loading
Loading
Loading
+18 −64
Original line number Diff line number Diff line
@@ -111,6 +111,9 @@
        },
        "tp:Action": {
          "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry"
        },
        "tp:Parameters": {
          "$ref": "#/$defs/ActionParameters"
        }
      },
      "required": [
@@ -154,28 +157,6 @@
          "required": [
            "tp:MobileAccessPolicyCriteria"
          ]
        },
        {
          "type": "object",
          "properties": {
            "tp:EthernetPolicyCriteria": {
              "$ref": "#/$defs/EthernetPolicyCriteria"
            }
          },
          "required": [
            "tp:EthernetPolicyCriteria"
          ]
        },
        {
          "type": "object",
          "properties": {
            "tp:RCSPolicyCriteria": {
              "$ref": "#/$defs/RCSPolicyCriteria"
            }
          },
          "required": [
            "tp:RCSPolicyCriteria"
          ]
        }
      ]
    },
@@ -216,62 +197,35 @@
      },
      "required": []
    },
    "EthernetPolicyCriteria": {
      "type": "object",
      "properties": {
        "tp:SourceMACAddress": {
          "$ref": "ts_103280_2017_07#/$defs/MACAddress"
        },
        "tp:DestinationMACAddress": {
          "$ref": "ts_103280_2017_07#/$defs/MACAddress"
        },
        "tp:BothDirections": {
          "type": "boolean"
        },
        "tp:VLANCriteria": {
          "$ref": "#/$defs/VLANCriteria"
        }
      },
      "required": []
    },
    "VLANCriteria": {
    "ActionParameters": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "tp:OuterVLANs": {
              "$ref": "#/$defs/VLANIDList"
            "tp:TruncateActionParameters": {
              "$ref": "#/$defs/TruncateActionParameters"
            }
          },
          "required": [
            "tp:OuterVLANs"
            "tp:TruncateActionParameters"
          ]
        }
      ]
    },
    "VLANIDList": {
      "type": "object",
      "properties": {
        "tp:VLANID": {
          "type": "array",
          "items": {
            "$ref": "ts_103280_2017_07#/$defs/VLANID"
          },
          "minItems": 1
    }
  },
      "required": []
    },
    "RCSPolicyCriteria": {
    "TruncateActionParameters": {
      "type": "object",
      "properties": {
        "tp:CommunicationServiceID": {
          "$ref": "ts_103280_2017_07#/$defs/ShortString"
        "tp:NumberOfOctets": {
          "type": "integer",
          "minimum": 0
        },
        "tp:ProvideOriginalLength": {
          "type": "boolean"
        }
      },
      "required": [
        "tp:CommunicationServiceID"
		"tp:NumberOfOctets"
	  ]
    }
}
}