186
186
type: str
187
187
source_ip_prefix:
188
188
description:
189
- - The destination IP address prefix to route SPAN Session packets.
189
+ - The prefix used to assign source IP addresses to ERSPAN packets which can be used to identify which Leaf or Spine is sending the traffic.
190
+ - This can be any IP. If the prefix is used, the node ID of the source node is used for the undefined bits of the prefix.
190
191
type: str
191
192
span_version:
192
193
description:
372
373
from ansible_collections .cisco .mso .plugins .module_utils .schemas import MSOSchemas
373
374
from ansible_collections .cisco .mso .plugins .module_utils .template import MSOTemplate , KVPair
374
375
from ansible_collections .cisco .mso .plugins .module_utils .constants import TARGET_DSCP_MAP , ENABLED_OR_DISABLED_TO_BOOL_STRING_MAP
375
- from ansible_collections .cisco .mso .plugins .module_utils .utils import append_update_ops_data , get_epg_uuid
376
+ from ansible_collections .cisco .mso .plugins .module_utils .utils import append_update_ops_data
376
377
import copy
377
378
378
379
@@ -507,7 +508,7 @@ def main():
507
508
mso_values ["sourceGroup" ] = source_group
508
509
if destination_epg :
509
510
mso_values ["destination" ]["remote" ] = dict (
510
- epgRef = get_epg_uuid (mso_schemas , destination_epg .get ("epg" ), destination_epg .get ("epg_uuid" )),
511
+ epgRef = mso_schemas . get_epg_uuid (destination_epg .get ("epg" ), destination_epg .get ("epg_uuid" )),
511
512
spanVersion = destination_epg .get ("span_version" ),
512
513
enforceSpanVersion = destination_epg .get ("enforce_span_version" ),
513
514
destIPAddress = destination_epg .get ("destination_ip" ),
@@ -518,7 +519,6 @@ def main():
518
519
)
519
520
520
521
if match :
521
-
522
522
mso_update_values = {
523
523
"name" : name ,
524
524
"description" : description ,
@@ -577,7 +577,7 @@ def format_sources(schemas, sources):
577
577
source_values = {
578
578
"name" : source .get ("name" ),
579
579
"direction" : source .get ("direction" ),
580
- "epg" : get_epg_uuid (schemas , source .get ("epg" ), source .get ("epg_uuid" )),
580
+ "epg" : schemas . get_epg_uuid (source .get ("epg" ), source .get ("epg_uuid" )),
581
581
}
582
582
source_list .append (source_values )
583
583
return source_list
0 commit comments