On Wed, Apr 4, 2018 at 11:24 PM, Matus Fabian -X (matfabia - PANTHEON
TECHNOLOGIES@Cisco) <matfa...@cisco.com> wrote:

> When using static mapping with port number external address/interface must
> be added to NAT pool otherwise static mapping won’t be resolved when
> interface obtain IP address. Run first “nat44 add interface address
> TenGigabitEthernet6/0/0” in your case.
>

Matus,

Sure, I can do that.  But my point is:  Why did it both "work" and "not
work"?
It _does_ add the mapping, and then it _does_ return an error.  My user
interface
is very confused by this!

If part of the mapping request is not fulfilled (not an interface IP
address available),
it should fail and NOT add the mapping.

Alternatively, if it is able to fulfill the mapping but just delayed, it
should
return a success code.

Thanks,
jdl


Matus
>
>
>
> *From:* Jon Loeliger <j...@netgate.com>
> *Sent:* Wednesday, April 4, 2018 5:41 PM
> *To:* Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) <
> matfa...@cisco.com>
> *Cc:* vpp-dev <vpp-dev@lists.fd.io>
> *Subject:* Re: [vpp-dev] Multiple Static Mappings
>
>
>
> On Wed, Apr 4, 2018 at 5:34 AM, Matus Fabian -X (matfabia - PANTHEON
> TECHNOLOGIES@Cisco) <matfa...@cisco.com> wrote:
>
> Fixed https://gerrit.fd.io/r/#/c/11505/
>
>
>
> Matus
>
> Matus,
>
>
>
> Thanks for the quick turn-around on the bug fix!
>
>
>
> While the original problem (one local address with multiple externals)
> seems
>
> to have been fixed, there is still some lingering problem here.  It may
> simply
>
> be an issue with the return codes:
>
>
>
> vpp# nat44 add static mapping udp local 10.10.10.100 90 external
> TenGigabitEthernet6/0/0 9999
> nat44 add static mapping: External addres must be allocated.
> vpp# show nat44 static mapping
> NAT44 static mappings:
> udp local 10.10.10.100:90 external TenGigabitEthernet6/0/0:9999 vrf -1
>
> vpp# nat44 add static mapping udp local 10.10.10.100 90 external
> TenGigabitEthernet6/0/0 9999 del
> nat44 add static mapping: Mapping not exist.
> vpp# show nat44 static mapping
> NAT44 static mappings:
> vpp#
>
> It appears to properly add and delete the mappings, but the return
>
> code indicates that the operations have failed.
>
>
>
> Thanks,
>
> jdl._,
>

Reply via email to