def _do_add_floating_ip_asr1k(self, floating_ip, fixed_ip, vrf,<EOL>ex_gw_port):
vlan = ex_gw_port['<STR_LIT>']['<STR_LIT>']<EOL>hsrp_grp = ex_gw_port[ha.HA_INFO]['<STR_LIT>']<EOL>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': floating_ip, '<STR_LIT>': fixed_ip, '<STR_LIT>': vrf,<EOL>'<STR_LIT:port>': ex_gw_port})<EOL>confstr = (asr1k_snippets.SET_STATIC_SRC_TRL_NO_VRF_MATCH %<EOL>(fixed_ip, floating_ip, vrf, hsrp_grp, vlan))<EOL>self._edit_running_config(confstr, '<STR_LIT>')<EOL>
To implement a floating ip, an ip static nat is configured in the
underlying router ex_gw_port contains data to derive the vlan
associated with related subnet for the fixed ip.  The vlan in turn
is applied to the redundancy parameter for setting the IP NAT.