richardlawley opened a new issue #3379: SRX Plugin Cannot add Port Forwarding 
Rule
URL: https://github.com/apache/cloudstack/issues/3379
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   SRX Plugin
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.11.2
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   Advanced Networking
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Model: srx345-dual-ac
   Junos: 15.1X49-D110.4
   JUNOS Software Release [15.1X49-D110.4]
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   When trying to add a port forwarding rule, it fails with a syntax error.  If 
this ever worked, then I suspect the syntax of the API command has changed 
since JunOS 10, which from the hardware compatibility list may be what worked.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   Add a port forwarding rule
   <!-- Paste example playbooks or commands between quotes below -->
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   Port Forwarding rule should be added, creating a destination nat rule on the 
SRX
   
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   2019-06-05 16:44:44,452 DEBUG [c.c.n.r.JuniperSrxResource] 
(DirectAgent-287:ctx-8a4e6665) (logid:be9407ed) Sending request:
   <rpc>                                                                        
                                                                                
                                                                        
       <load-configuration>                                                     
                                                                                
                                                                        
       <configuration>                                                          
                                                                                
                                                                        
           <security>                                                           
                                                                                
                                                                        
               <nat>                                                            
                                                                                
                                                                        
                   <destination>                                                
                                                                                
                                                                        
                       <rule-set>                                               
                                                                                
                                                                        
                       <name>untrust</name>                                     
                                                                                
                                                                        
                       <from>                                                   
                                                                                
                                                                        
                           <zone>untrust</zone>                                 
                                                                                
                                                                        
                       </from>                                                  
                                                                                
                                                                        
                       <rule>                                                   
                                                                                
                                                                        
                           <name>destnatrule-1798423542</name>                  
                                                                                
                                                                        
                           
<dest-nat-rule-match><destination-address><dst-addr>XX.XX.XX.XX 
(XX-XX-XX-XX.XXXXXXXX.net)</dst-addr></destination-address><destination-port><dst-port>80</dst-port></destination-port></dest-nat-rule-match>
                           <then>                                               
                                                                                
                                                                        
                               <destination-nat>                                
                                                                                
                                                                        
                               
<pool><pool-name>10-9-160-193-80</pool-name></pool>                             
                                                                                
                                         
                               </destination-nat></then>                        
                                                                                
                                                                        
                       </rule>                                                  
                                                                                
                                                                        
                       </rule-set></destination>                                
                                                                                
                                                                        
               </nat>                                                           
                                                                                
                                                                        
           </security>                                                          
                                                                                
                                                                        
       </configuration>                                                         
                                                                                
                                                                        
       </load-configuration></rpc>                                              
                                                                                
                                                                        
                                                                                
                                                                                
                                                                        
   2019-06-05 16:44:44,495 DEBUG [c.c.n.r.JuniperSrxResource] 
(DirectAgent-287:ctx-8a4e6665) (logid:be9407ed)                                 
                                                                                
          
    Checking response: <rpc-reply 
xmlns:junos="http://xml.juniper.net/junos/15.1X49/junos";><load-configuration-results>
                                                                                
                                 
   <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm"; 
xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm";>                                 
                                                                                
               
       <token>dst-port</token>                                                  
                                                                                
                                                                        
       <message>syntax error</message>                                          
                                                                                
                                                                        
   </xnm:error>                                                                 
                                                                                
                                                                        
   <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm"; 
xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm";>                                 
                                                                                
               
       <token>dst-port</token>                                                  
                                                                                
                                                                        
       <message>syntax error</message>                                          
                                                                                
                                                                        
   </xnm:error>                                                                 
                                                                                
                                                                        
   
<load-error-count>2</load-error-count></load-configuration-results></rpc-reply> 
    
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to