Open miladghaznavi opened 5 years ago
The global reference is valid in the element. However getting out and back of the elementclass is not possible. It only have input and outputs. The usual solution would be to have one more output and one more input that would be piped "externally" to nat.
Eg in your element class replace [$port]nat[$port]
by output[1] ; input[1]
and add nfb[1] -> nat ->[1]nfb0 ; nfb[1] -> [1]nat[1] -> [1]nfb0 ;
somewhere.
Is there a way to access to an element defined in global space inside the definition of an elementclass. For instance: