03-23-2021 04:27 PM
Hi
Is it possible to apply time-based SD-WAN policy(ex> data or app-aware policy)?
For example, certain traffic takes a specific link applied by a data policy during 9am - 5pm.
03-23-2021 04:57 PM
08-16-2022 12:41 PM
Can you please give an example?
08-21-2022 01:16 PM
Example using python scripts to active/deactivate central policy. Scripts could be placed on crontab to activate at 9am and deactivate at 5pm. Activate and verify traffic takes correct path
https://192.168.0.156:443/dataservice/template/policy/vsmart
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
| policy | last | policy | policy | is | policy |
| Name | Updated | Description | Id | Policy | Type |
| | On | | | Activated | |
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
| Central_Policy | 2022-08-10 20:34:17 | Central_Policy | b02f82e1-2131-427e-a2d1-1d1a83c5c495 | False | feature |
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
200
https://192.168.0.156:443/dataservice/template/policy/vsmart/activate/b02f82e1-2131-427e-a2d1-1d1a83c5c495?confirm=true
{"id":"vsmart_policy_config-381bbc6f-4306-4374-a893-0601a6540220"}
https://192.168.0.156:443/dataservice/device/tools/servicepath/11.1.1.67
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
| device | localColor | destIp | remoteSystemIp | sourcePort | sourceIp | destPort | remoteColor | match |
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 46 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 32 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 24 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 16 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 8 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 4 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 0 |
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
Deactivate and verify traffic is now load shared across transports (inet and mpls) since no policy is applied.
https://192.168.0.156:443/dataservice/template/policy/vsmart
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
| policy | last | policy | policy | is | policy |
| Name | Updated | Description | Id | Policy | Type |
| | On | | | Activated | |
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
| Central_Policy | 2022-08-10 20:34:17 | Central_Policy | b02f82e1-2131-427e-a2d1-1d1a83c5c495 | True | feature |
+----------------+---------------------+----------------+--------------------------------------+-----------+---------+
200
https://192.168.0.156:443/dataservice/template/policy/vsmart/deactivate/b02f82e1-2131-427e-a2d1-1d1a83c5c495?confirm=true
{"id":"vsmart_policy_config-aedcc979-9ca3-4441-9146-47c82c8b5f77"}
https://192.168.0.156:443/dataservice/device/tools/servicepath/11.1.1.67
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
| device | localColor | destIp | remoteSystemIp | sourcePort | sourceIp | destPort | remoteColor | match |
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 46 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 46 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 32 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 32 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 24 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 24 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 16 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 16 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 8 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 8 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 4 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 4 |
| 11.1.1.67 | mpls | 172.27.1.30 | 11.1.1.64 | 12386 | 172.27.1.38 | 12386 | mpls | 0 |
| 11.1.1.67 | biz-internet | 192.168.3.2 | 11.1.1.64 | 12366 | 192.168.3.10 | 12386 | biz-internet | 0 |
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide