File tree 1 file changed +5
-16
lines changed
1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -30,27 +30,16 @@ agentAddress {{ protocol(agentip) }}:[{{ agentip }}]{% if port %}:{{ port }}{% e
30
30
{% endfor %}
31
31
{% elif NAMESPACE_COUNT is not defined or NAMESPACE_COUNT |int <= 1 %}
32
32
{% if MGMT_INTERFACE is defined %}
33
- {% for intf , ip in MGMT_INTERFACE %}
34
- {% set agentip = ip .split ('/' )[0]|lower %}
35
- {% set zoneid = '' %}
36
- # Use interface as zoneid for link local ipv6
37
- {% if agentip .startswith ('fe80' ) %}
38
- {% set zoneid = '%' + intf %}
39
- {% endif %}
40
- agentAddress {{ protocol(agentip) }}:[{{ agentip }}{{ zoneid }}]:161
33
+ {% for if , ip in MGMT_INTERFACE %}
34
+ {% set agentip = ip .split ('/' )[0] %}
35
+ agentAddress {{ protocol(agentip) }}:[{{ agentip }}]:161
41
36
{% endfor %}
42
37
{% endif %}
43
38
{% if LOOPBACK_INTERFACE is defined %}
44
39
{% for lo in LOOPBACK_INTERFACE %}
45
40
{% if lo | length == 2 %}
46
- {% set intf = lo [0] %}
47
- {% set agentip = lo [1].split ('/' )[0]|lower %}
48
- {% set zoneid = '' %}
49
- # Use interface as zoneid for link local ipv6
50
- {% if agentip .startswith ('fe80' ) %}
51
- {% set zoneid = '%' + intf %}
52
- {% endif %}
53
- agentAddress {{ protocol(agentip) }}:[{{ agentip }}{{ zoneid }}]:161
41
+ {% set agentip = lo [1].split ('/' )[0] %}
42
+ agentAddress {{ protocol(agentip) }}:[{{ agentip }}]:161
54
43
{% endif %}
55
44
{% endfor %}
56
45
{% endif %}
You can’t perform that action at this time.
0 commit comments