Package com.cloud.baremetal.networkservice.schema

Examples of com.cloud.baremetal.networkservice.schema.SecurityGroupVmRuleSet


    public SecurityGroupRuleAnswer call(String agentIp, SecurityGroupRulesCmd cmd) {
        PostMethod post = new PostMethod(String.format(
                "http://%s:%s", agentIp, getPort()));
        try {
            SecurityGroupVmRuleSet rset = new SecurityGroupVmRuleSet();
            rset.getEgressRules().addAll(generateRules(cmd.getEgressRuleSet()));
            rset.getIngressRules().addAll(
                    generateRules(cmd.getIngressRuleSet()));
            rset.setVmName(cmd.getVmName());
            rset.setVmIp(cmd.getGuestIp());
            rset.setVmMac(cmd.getGuestMac());
            rset.setVmId(cmd.getVmId());
            rset.setSignature(cmd.getSignature());
            rset.setSequenceNumber(cmd.getSeqNum());
            Marshaller marshaller = context.createMarshaller();
            StringWriter writer = new StringWriter();
            marshaller.marshal(rset, writer);
            String xmlContents = writer.toString();
            logger.debug(xmlContents);
View Full Code Here


  public SecurityGroupRuleAnswer call(String agentIp,
      SecurityGroupRulesCmd cmd) {
    PostMethod post = new PostMethod(String.format(
            "http://%s:%s", agentIp, getPort()));
    try {
      SecurityGroupVmRuleSet rset = new SecurityGroupVmRuleSet();
      rset.getEgressRules().addAll(generateRules(cmd.getEgressRuleSet()));
      rset.getIngressRules().addAll(
          generateRules(cmd.getIngressRuleSet()));
      rset.setVmName(cmd.getVmName());
      rset.setVmIp(cmd.getGuestIp());
      rset.setVmMac(cmd.getGuestMac());
      rset.setVmId(cmd.getVmId());
      rset.setSignature(cmd.getSignature());
      rset.setSequenceNumber(cmd.getSeqNum());
      Marshaller marshaller = context.createMarshaller();
      StringWriter writer = new StringWriter();
      marshaller.marshal(rset, writer);
      String xmlContents = writer.toString();
      logger.debug(xmlContents);
View Full Code Here

  public SecurityGroupRuleAnswer call(String agentIp,
      SecurityGroupRulesCmd cmd) {
    PostMethod post = new PostMethod(String.format(
            "http://%s:%s", agentIp, getPort()));
    try {
      SecurityGroupVmRuleSet rset = new SecurityGroupVmRuleSet();
      rset.getEgressRules().addAll(generateRules(cmd.getEgressRuleSet()));
      rset.getIngressRules().addAll(
          generateRules(cmd.getIngressRuleSet()));
      rset.setVmName(cmd.getVmName());
      rset.setVmIp(cmd.getGuestIp());
      rset.setVmMac(cmd.getGuestMac());
      rset.setVmId(cmd.getVmId());
      rset.setSignature(cmd.getSignature());
      rset.setSequenceNumber(cmd.getSeqNum());
      Marshaller marshaller = context.createMarshaller();
      StringWriter writer = new StringWriter();
      marshaller.marshal(rset, writer);
      String xmlContents = writer.toString();
      logger.debug(xmlContents);
View Full Code Here

TOP

Related Classes of com.cloud.baremetal.networkservice.schema.SecurityGroupVmRuleSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.