+ if (is_identity_static_mapping (m))
+ {
+ if (is_addr_only_static_mapping (m))
+ s = format (s, "identity mapping %U",
+ format_ip4_address, &m->local_addr);
+ else
+ s = format (s, "identity mapping %U %U:%d",
+ format_snat_protocol, m->proto,
+ format_ip4_address, &m->local_addr, m->local_port);
+
+ /* *INDENT-OFF* */
+ pool_foreach (local, m->locals,
+ ({
+ s = format (s, " vrf %d", local->vrf_id);
+ }));
+ /* *INDENT-ON* */
+
+ return s;
+ }
+
+ if (is_addr_only_static_mapping (m))