summaryrefslogtreecommitdiffstats
path: root/srv6/srv6-impl/src/test/resources/policy.json
blob: 5c1e256f6ae47b3b7b6174cc803366752aa0754b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
  "policies": {
    "policy": [{
      "name": "a::e",
      "config": {
        "name": "a::e",
        "color": 1,
        "endpoint": "e::1",
        "admin-state": "UP"
      },
      "color": 1,
      "endpoint": "e::1",
      "candidate-paths": {
        "candidate-path": [{
          "name": "candidatePath1",
          "provisioning-method": "provisioning-method-config",
          "preference": 100,
          "distinguisher": 0,
          "config": {
            "name": "candidatePath1",
            "provisioning-method": "provisioning-method-config",
            "computation-method": "path-explicitly-defined",
            "preference": 100,
            "distinguisher": 0
          },
          "binding-sid": {
            "config": {
              "alloc-mode": "explicit",
              "type": "srv6",
              "value": "a::e"
            }
          },
          "segment-lists": {
            "segment-list": [{
              "name": "a::e-0",
              "config": {
                "name": "a::e-0",
                "weight": 0
              }
            },
              {
                "name": "a::e-1",
                "config": {
                  "name": "a::e-1",
                  "weight": 1
                }
              }
            ]
          }
        }]
      },
      "autoroute-include": {
        "config": {
          "metric-type": "constant",
          "metric-constant": 0
        },
        "prefixes": {
          "config": {
            "prefixes-all": false
          },
          "prefix": [{
            "ip-prefix": "e::/64",
            "config": {
              "ip-prefix": "e::/64"
            }
          }]
        },
        "interfaces": {
          "interface": [{
            "input-interface": "loop0",
            "config": {
              "input-interface": "loop0"
            }
          }]
        }
      },
      "binding-sid": {
        "config": {
          "alloc-mode": "explicit",
          "type": "srv6",
          "value": "a::e"
        }
      },
      "vpp-oc-srte-policy:vpp-sr-policy": {
        "config": {
          "policy-type": "Default",
          "policy-behavior": "Encapsulation",
          "table-id": 0,
          "address-family": "vpp-fib-table-management:ipv6"
        }
      }
    }]
  }
}