cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
755
Views
0
Helpful
3
Replies

Time-based SD-WAN policy

DaeHeon Kang
Level 1
Level 1

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.

 

3 Replies 3

osdesent
Cisco Employee
Cisco Employee
Hi!
Yes, it is possible but through API calls
Oscar Desentis
Customer Success Specialist (SD-WAN)

Can you please give an example?

Dan Frey
Cisco Employee
Cisco Employee

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   |
+-----------+--------------+-------------+----------------+------------+--------------+----------+--------------+-------+

Review Cisco Networking for a $25 gift card