diff --git a/definitions/TrafficFilter.Address.yaml b/definitions/TrafficFilter.Address.yaml index d3a663a709e7472d4600c9e4b725fa83955c3e49..16a872905df18637a54d65763de3aa57c6c2ebc4 100644 --- a/definitions/TrafficFilter.Address.yaml +++ b/definitions/TrafficFilter.Address.yaml @@ -1,3 +1,3 @@ -description: Identify the traffic rule. +description: Identify the traffic ip address. type: string -example: TrafficRule1 \ No newline at end of file +example: 192.168.1.1 \ No newline at end of file diff --git a/examples/TrafficRule.json b/examples/TrafficRule.json new file mode 100644 index 0000000000000000000000000000000000000000..1f2740a869490744593363304f11a41dbfac5f74 --- /dev/null +++ b/examples/TrafficRule.json @@ -0,0 +1,26 @@ +{ + "TrafficRule": { + "trafficRuleId": "TrafficRule123", + "serName": "ExampleService", + "filterType": "FLOW", + "priority": 1, + "trafficFilter": { + "srcAddress": [ + "192.168.2.0/24", + "192.168.3.0/24" + ], + "dstAddress": [ + "192.127.4.100/32" + ], + "dstPort": [ + 80 + ] + }, + "action": "FORWARD_DECAPSULATED", + "dstInterface": { + "interfaceType": "IP", + "dstIpAddress": "20.1.1.1" + }, + "state": "ACTIVE" + } +} \ No newline at end of file diff --git a/examples/TrafficRule.yaml b/examples/TrafficRule.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f599c15ae1d96cafa6a270b11877747f597aa23f --- /dev/null +++ b/examples/TrafficRule.yaml @@ -0,0 +1,15 @@ +TrafficRule: + trafficRuleId: TrafficRule123 + serName: ExampleService + filterType: FLOW + priority: 1 + trafficFilter: + srcAddress: [192.168.2.0/24, 192.168.3.0/24] + dstAddress: [192.127.4.100/32] + dstPort: [80] + action: FORWARD_DECAPSULATED + dstInterface: + interfaceType: IP + dstIpAddress: 20.1.1.1 + state: ACTIVE +